<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DM-CtrlH7-BF-DevProgram: C:/Users/ASUS/Desktop/dm-ctrlH7-balance-9025test/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_spi.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="50x5.png"/></td>
  <td id="projectalign">
   <div id="projectname">DM-CtrlH7-BF-DevProgram<span id="projectnumber">&#160;beta 0.1</span>
   </div>
   <div id="projectbrief">C.ONE Studio Damiao Development Board Framework</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search',true);
  $(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(function(){initNavTree('stm32h7xx__hal__spi_8h_source.html','',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">stm32h7xx_hal_spi.h</div></div>
</div><!--header-->
<div class="contents">
<a href="stm32h7xx__hal__spi_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="comment">/* Define to prevent recursive inclusion -------------------------------------*/</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#ifndef STM32H7xx_HAL_SPI_H</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#define STM32H7xx_HAL_SPI_H</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="comment">/* Includes ------------------------------------------------------------------*/</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#include &quot;<a class="code" href="stm32h7xx__hal__def_8h.html">stm32h7xx_hal_def.h</a>&quot;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="comment">/* Exported types ------------------------------------------------------------*/</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span></div>
<div class="foldopen" id="foldopen00046" data-start="{" data-end="};">
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html">   46</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>{</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a5247eb0463437c9980a9d4a5300b50a5">   48</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a5247eb0463437c9980a9d4a5300b50a5">Mode</a>;                              </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#ae5c132f597c806d7a1fe316023b36867">   51</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#ae5c132f597c806d7a1fe316023b36867">Direction</a>;                         </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a24b7835dd877e1c4e55236303fa3387f">   54</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a24b7835dd877e1c4e55236303fa3387f">DataSize</a>;                          </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a96922c7ff9e589ebd9611fc4ab730454">   57</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a96922c7ff9e589ebd9611fc4ab730454">CLKPolarity</a>;                       </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#ab21a458209f2588f49a2353c56f62625">   60</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#ab21a458209f2588f49a2353c56f62625">CLKPhase</a>;                          </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#aed541d17808213ac6f90ac7deb2bec5f">   63</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#aed541d17808213ac6f90ac7deb2bec5f">NSS</a>;                               </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a1d553f90738cb633a9298d2b4d306fde">   68</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a1d553f90738cb633a9298d2b4d306fde">BaudRatePrescaler</a>;                 </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a8c541d8863cb62a3212b9381b5cba447">   74</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a8c541d8863cb62a3212b9381b5cba447">FirstBit</a>;                          </div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a60db7e87bb66775df6213e4006dfd876">   77</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a60db7e87bb66775df6213e4006dfd876">TIMode</a>;                            </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a3472de9bd9247c1d97312aff7e58e385">   80</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a3472de9bd9247c1d97312aff7e58e385">CRCCalculation</a>;                    </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#abdaf3ccbfa4ef68cc81fd32f29baa678">   83</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#abdaf3ccbfa4ef68cc81fd32f29baa678">CRCPolynomial</a>;                     </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#ade3815f539adcdeba866ab26a5f59c99">   87</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#ade3815f539adcdeba866ab26a5f59c99">CRCLength</a>;                         </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#aab94c82883ea08f33ef383efe30347eb">   90</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#aab94c82883ea08f33ef383efe30347eb">NSSPMode</a>;                          </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#ade84e3b4f320066c60d10eccd02ae1e5">   96</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#ade84e3b4f320066c60d10eccd02ae1e5">NSSPolarity</a>;                       </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a736486f4bfe259356bf825d8b8c848bb">  100</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a736486f4bfe259356bf825d8b8c848bb">FifoThreshold</a>;                     </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#acddf0a9e873f8c9a05c9901f648e5920">  103</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#acddf0a9e873f8c9a05c9901f648e5920">TxCRCInitializationPattern</a>;        </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span> </div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a0288b29c4c3c41fc06605fcee9d4c100">  107</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a0288b29c4c3c41fc06605fcee9d4c100">RxCRCInitializationPattern</a>;        </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a1ba4e509384f19be9854adea27a454fa">  111</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a1ba4e509384f19be9854adea27a454fa">MasterSSIdleness</a>;                  </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#aa46bb96cca3eec52a44926a388dbeaf9">  116</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#aa46bb96cca3eec52a44926a388dbeaf9">MasterInterDataIdleness</a>;           </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span> </div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a142a178fe24816713e6f787424b7da46">  121</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a142a178fe24816713e6f787424b7da46">MasterReceiverAutoSusp</a>;            </div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#a2353869659f9840f31d800e012961850">  125</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#a2353869659f9840f31d800e012961850">MasterKeepIOState</a>;                 </div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span> </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="struct_s_p_i___init_type_def.html#afa49766f8a69a21f3e866fb38770b75f">  128</a></span>  uint32_t <a class="code hl_variable" href="struct_s_p_i___init_type_def.html#afa49766f8a69a21f3e866fb38770b75f">IOSwap</a>;                            </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>} <a class="code hl_struct" href="struct_s_p_i___init_type_def.html">SPI_InitTypeDef</a>;</div>
</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span></div>
<div class="foldopen" id="foldopen00135" data-start="{" data-end="};">
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___types.html#ga8891cb64e76198a860172d94c638c9b4">  135</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>{</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4adbc218df2c9841b561282b40b3ded69d">  137</a></span>  <a class="code hl_enumvalue" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4adbc218df2c9841b561282b40b3ded69d">HAL_SPI_STATE_RESET</a>      = 0x00UL,    </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4abb3992c67a15c14bd1808ef6b63fa926">  138</a></span>  <a class="code hl_enumvalue" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4abb3992c67a15c14bd1808ef6b63fa926">HAL_SPI_STATE_READY</a>      = 0x01UL,    </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a0635e168bc0430253fe8e74cfe9768fd">  139</a></span>  <a class="code hl_enumvalue" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a0635e168bc0430253fe8e74cfe9768fd">HAL_SPI_STATE_BUSY</a>       = 0x02UL,    </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a5d82b644c7ca656ab5fe8a8e3cbc29ab">  140</a></span>  <a class="code hl_enumvalue" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a5d82b644c7ca656ab5fe8a8e3cbc29ab">HAL_SPI_STATE_BUSY_TX</a>    = 0x03UL,    </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4afd7e00128aca1feaa099c2595ffb9277">  141</a></span>  <a class="code hl_enumvalue" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4afd7e00128aca1feaa099c2595ffb9277">HAL_SPI_STATE_BUSY_RX</a>    = 0x04UL,    </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a9dae2883ae3e43ca28afc9453a14c938">  142</a></span>  <a class="code hl_enumvalue" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a9dae2883ae3e43ca28afc9453a14c938">HAL_SPI_STATE_BUSY_TX_RX</a> = 0x05UL,    </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a3cba266d2346abe3b62fa0acccab4711">  143</a></span>  <a class="code hl_enumvalue" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a3cba266d2346abe3b62fa0acccab4711">HAL_SPI_STATE_ERROR</a>      = 0x06UL,    </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a34f9231d040d752a034db85e3eb7f782">  144</a></span>  <a class="code hl_enumvalue" href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a34f9231d040d752a034db85e3eb7f782">HAL_SPI_STATE_ABORT</a>      = 0x07UL     </div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>} <a class="code hl_enumeration" href="group___s_p_i___exported___types.html#ga8891cb64e76198a860172d94c638c9b4">HAL_SPI_StateTypeDef</a>;</div>
</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span><span class="preprocessor">#if defined(USE_SPI_RELOAD_TRANSFER)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>{</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>  <span class="keyword">const</span> uint8_t              *pTxBuffPtr;                  </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span> </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>  uint16_t                   TxXferSize;                   </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>  uint8_t                    *pRxBuffPtr;                  </div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>  uint16_t                   RxXferSize;                   </div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>  uint32_t                   Requested;                    </div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>} SPI_ReloadTypeDef;</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span><span class="preprocessor">#endif </span><span class="comment">/* USE_SPI_RELOAD_TRANSFER */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span></div>
<div class="foldopen" id="foldopen00169" data-start="{" data-end="};">
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html">  169</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a></div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span>{</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#a97e276bfd322a6028cbac7408cf8e610">  171</a></span>  <a class="code hl_struct" href="struct_s_p_i___type_def.html">SPI_TypeDef</a>                *<a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#a97e276bfd322a6028cbac7408cf8e610">Instance</a>;                    </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#a4b43d4d72f571b7d2162a2d171bb1312">  173</a></span>  <a class="code hl_struct" href="struct_s_p_i___init_type_def.html">SPI_InitTypeDef</a>            <a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#a4b43d4d72f571b7d2162a2d171bb1312">Init</a>;                         </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#aacb6c3c55011b1b4d2a2ee1b4c012984">  175</a></span>  <span class="keyword">const</span> uint8_t              *<a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#aacb6c3c55011b1b4d2a2ee1b4c012984">pTxBuffPtr</a>;                  </div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span> </div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#a5617a3a7983aedb0d214f318062ebc48">  177</a></span>  uint16_t                   <a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#a5617a3a7983aedb0d214f318062ebc48">TxXferSize</a>;                   </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#a186b770dda2e53c4e9a204cd50e17e74">  179</a></span>  <a class="code hl_define" href="core__armv81mml_8h.html#aec43007d9998a0a0e01faede4133d6be">__IO</a> uint16_t              <a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#a186b770dda2e53c4e9a204cd50e17e74">TxXferCount</a>;                  </div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#aa770b67ee3966c0aa7409f64b3b99bd8">  181</a></span>  uint8_t                    *<a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#aa770b67ee3966c0aa7409f64b3b99bd8">pRxBuffPtr</a>;                  </div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span> </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#ab274a4c2de5e95145d45fe80a289f535">  183</a></span>  uint16_t                   <a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#ab274a4c2de5e95145d45fe80a289f535">RxXferSize</a>;                   </div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#a67e721440b3449d544a27cfd7726c920">  185</a></span>  <a class="code hl_define" href="core__armv81mml_8h.html#aec43007d9998a0a0e01faede4133d6be">__IO</a> uint16_t              <a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#a67e721440b3449d544a27cfd7726c920">RxXferCount</a>;                  </div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#abef898bf323d7e9d693665f12b6f6239">  187</a></span>  uint32_t                   <a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#abef898bf323d7e9d693665f12b6f6239">CRCSize</a>;                      </div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span> </div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#a599045b20d284f94e5a367a85cad9f39">  189</a></span>  void (*<a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#a599045b20d284f94e5a367a85cad9f39">RxISR</a>)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);         </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span> </div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#a4446bdc11698f861edf37b72cf437aeb">  191</a></span>  void (*<a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#a4446bdc11698f861edf37b72cf437aeb">TxISR</a>)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);         </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span> </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#aa311e9419f520aee2d2fa30668ce485c">  193</a></span>  <a class="code hl_typedef" href="group___d_m_a___exported___types.html#ga41b754a906b86bce54dc79938970138b">DMA_HandleTypeDef</a>          *<a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#aa311e9419f520aee2d2fa30668ce485c">hdmatx</a>;                      </div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span> </div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#a0876a1b344524bbdbd984be1c3b07a10">  195</a></span>  <a class="code hl_typedef" href="group___d_m_a___exported___types.html#ga41b754a906b86bce54dc79938970138b">DMA_HandleTypeDef</a>          *<a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#a0876a1b344524bbdbd984be1c3b07a10">hdmarx</a>;                      </div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#aa13d993a0b9b0ea6a07e5a77eeaf394e">  197</a></span>  <a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#ab367482e943333a1299294eadaad284b">HAL_LockTypeDef</a>            <a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#aa13d993a0b9b0ea6a07e5a77eeaf394e">Lock</a>;                         </div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span> </div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#aa3e13040cc9ea19050d21818bccd49c9">  199</a></span>  <a class="code hl_define" href="core__armv81mml_8h.html#aec43007d9998a0a0e01faede4133d6be">__IO</a> <a class="code hl_enumeration" href="group___s_p_i___exported___types.html#ga8891cb64e76198a860172d94c638c9b4">HAL_SPI_StateTypeDef</a>  <a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#aa3e13040cc9ea19050d21818bccd49c9">State</a>;                        </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span> </div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="struct_____s_p_i___handle_type_def.html#ab2497f2e3cfae59376db75da3bda7ffe">  201</a></span>  <a class="code hl_define" href="core__armv81mml_8h.html#aec43007d9998a0a0e01faede4133d6be">__IO</a> uint32_t              <a class="code hl_variable" href="struct_____s_p_i___handle_type_def.html#ab2497f2e3cfae59376db75da3bda7ffe">ErrorCode</a>;                    </div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span> </div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span><span class="preprocessor">#if defined(USE_SPI_RELOAD_TRANSFER)</span></div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span> </div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span>  SPI_ReloadTypeDef          Reload;                       </div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span> </div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span><span class="preprocessor">#endif </span><span class="comment">/* USE_SPI_RELOAD_TRANSFER */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span> </div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span><span class="preprocessor">#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1UL)</span></div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span>  void (* TxCpltCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);       </div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span>  void (* RxCpltCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);       </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span>  void (* TxRxCpltCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);     </div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>  void (* TxHalfCpltCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);   </div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span>  void (* RxHalfCpltCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);   </div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>  void (* TxRxHalfCpltCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi); </div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>  void (* ErrorCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);        </div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span>  void (* AbortCpltCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);    </div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span>  void (* SuspendCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);      </div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span>  void (* MspInitCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);      </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>  void (* MspDeInitCallback)(<span class="keyword">struct </span><a class="code hl_struct" href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a> *hspi);    </div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span> </div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span><span class="preprocessor">#endif  </span><span class="comment">/* USE_HAL_SPI_REGISTER_CALLBACKS */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">  223</a></span>} <a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a>;</div>
</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno">  224</span> </div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span><span class="preprocessor">#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1UL)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span>{</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span>  HAL_SPI_TX_COMPLETE_CB_ID             = 0x00UL,    </div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span>  HAL_SPI_RX_COMPLETE_CB_ID             = 0x01UL,    </div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno">  233</span>  HAL_SPI_TX_RX_COMPLETE_CB_ID          = 0x02UL,    </div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno">  234</span>  HAL_SPI_TX_HALF_COMPLETE_CB_ID        = 0x03UL,    </div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno">  235</span>  HAL_SPI_RX_HALF_COMPLETE_CB_ID        = 0x04UL,    </div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>  HAL_SPI_TX_RX_HALF_COMPLETE_CB_ID     = 0x05UL,    </div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span>  HAL_SPI_ERROR_CB_ID                   = 0x06UL,    </div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span>  HAL_SPI_ABORT_CB_ID                   = 0x07UL,    </div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno">  239</span>  HAL_SPI_SUSPEND_CB_ID                 = 0x08UL,    </div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>  HAL_SPI_MSPINIT_CB_ID                 = 0x09UL,    </div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span>  HAL_SPI_MSPDEINIT_CB_ID               = 0x0AUL     </div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span> </div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>} HAL_SPI_CallbackIDTypeDef;</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span></div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span><span class="keyword">typedef</span>  void (*pSPI_CallbackTypeDef)(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi); </div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno">  249</span> </div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span><span class="preprocessor">#endif </span><span class="comment">/* USE_HAL_SPI_REGISTER_CALLBACKS */</span><span class="preprocessor"></span><span class="preprocessor"></span></div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span> </div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span><span class="comment">/* Exported constants --------------------------------------------------------*/</span></div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno">  256</span></div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span></div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno">  264</span><span class="preprocessor">#define SPI_LOWEND_FIFO_SIZE                          8UL</span></div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span><span class="preprocessor">#define SPI_HIGHEND_FIFO_SIZE                         16UL</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span></div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#gaac0006cdf5670741f8702e55d4bf4601">  273</a></span><span class="preprocessor">#define HAL_SPI_ERROR_NONE                            (0x00000000UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#ga75f5edd4e2a7a95bc9a994244df52460">  274</a></span><span class="preprocessor">#define HAL_SPI_ERROR_MODF                            (0x00000001UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#gad1163823ec5fa89e4670366565d4ab93">  275</a></span><span class="preprocessor">#define HAL_SPI_ERROR_CRC                             (0x00000002UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#ga9587f998fed196a4f30c38f2da731c0f">  276</a></span><span class="preprocessor">#define HAL_SPI_ERROR_OVR                             (0x00000004UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#gaf03238e57dd0c4d277fef2aa7a083133">  277</a></span><span class="preprocessor">#define HAL_SPI_ERROR_FRE                             (0x00000008UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#gaaf91992131301e3fc7f2ce62fb011f6c">  278</a></span><span class="preprocessor">#define HAL_SPI_ERROR_DMA                             (0x00000010UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#ga777b36b52caf926a384976baf34530a3">  279</a></span><span class="preprocessor">#define HAL_SPI_ERROR_FLAG                            (0x00000020UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#gab7fa15838d5ef9316ed8a0ec1c782fb7">  280</a></span><span class="preprocessor">#define HAL_SPI_ERROR_ABORT                           (0x00000040UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#ga58d86c21484e1d1fe3027ec2771706cc">  281</a></span><span class="preprocessor">#define HAL_SPI_ERROR_UDR                             (0x00000080UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#ga67dd5b4fb30d2e506e5900261eec47ba">  282</a></span><span class="preprocessor">#define HAL_SPI_ERROR_TIMEOUT                         (0x00000100UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#ga81d13d9d60c821fea6f2e993e656f92a">  283</a></span><span class="preprocessor">#define HAL_SPI_ERROR_UNKNOW                          (0x00000200UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#ga4e6d9b12a40b3c6ac209f0e711ba3397">  284</a></span><span class="preprocessor">#define HAL_SPI_ERROR_NOT_SUPPORTED                   (0x00000400UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"><a class="line" href="group___s_p_i___error___code.html#gacc0d4d1cc59ba95a075fd6244505d4ed">  285</a></span><span class="preprocessor">#define HAL_SPI_ERROR_RELOAD                          (0x00000800UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span><span class="preprocessor">#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1UL)</span></div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span><span class="preprocessor">#define HAL_SPI_ERROR_INVALID_CALLBACK                (0x00001000UL)   </span><span class="preprocessor"></span></div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span><span class="preprocessor">#endif </span><span class="comment">/* USE_HAL_SPI_REGISTER_CALLBACKS */</span><span class="preprocessor"></span><span class="preprocessor"></span></div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno">  292</span></div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno">  296</span><span class="preprocessor">#define SPI_MODE_SLAVE                                (0x00000000UL)</span></div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno">  297</span><span class="preprocessor">#define SPI_MODE_MASTER                               SPI_CFG2_MASTER</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno">  301</span></div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span><span class="preprocessor">#define SPI_DIRECTION_2LINES                          (0x00000000UL)</span></div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span><span class="preprocessor">#define SPI_DIRECTION_2LINES_TXONLY                   SPI_CFG2_COMM_0</span></div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span><span class="preprocessor">#define SPI_DIRECTION_2LINES_RXONLY                   SPI_CFG2_COMM_1</span></div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span><span class="preprocessor">#define SPI_DIRECTION_1LINE                           SPI_CFG2_COMM</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span></div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span><span class="preprocessor">#define SPI_DATASIZE_4BIT                             (0x00000003UL)</span></div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span><span class="preprocessor">#define SPI_DATASIZE_5BIT                             (0x00000004UL)</span></div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span><span class="preprocessor">#define SPI_DATASIZE_6BIT                             (0x00000005UL)</span></div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span><span class="preprocessor">#define SPI_DATASIZE_7BIT                             (0x00000006UL)</span></div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno">  320</span><span class="preprocessor">#define SPI_DATASIZE_8BIT                             (0x00000007UL)</span></div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span><span class="preprocessor">#define SPI_DATASIZE_9BIT                             (0x00000008UL)</span></div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno">  322</span><span class="preprocessor">#define SPI_DATASIZE_10BIT                            (0x00000009UL)</span></div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno">  323</span><span class="preprocessor">#define SPI_DATASIZE_11BIT                            (0x0000000AUL)</span></div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno">  324</span><span class="preprocessor">#define SPI_DATASIZE_12BIT                            (0x0000000BUL)</span></div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno">  325</span><span class="preprocessor">#define SPI_DATASIZE_13BIT                            (0x0000000CUL)</span></div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno">  326</span><span class="preprocessor">#define SPI_DATASIZE_14BIT                            (0x0000000DUL)</span></div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno">  327</span><span class="preprocessor">#define SPI_DATASIZE_15BIT                            (0x0000000EUL)</span></div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span><span class="preprocessor">#define SPI_DATASIZE_16BIT                            (0x0000000FUL)</span></div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span><span class="preprocessor">#define SPI_DATASIZE_17BIT                            (0x00000010UL)</span></div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span><span class="preprocessor">#define SPI_DATASIZE_18BIT                            (0x00000011UL)</span></div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span><span class="preprocessor">#define SPI_DATASIZE_19BIT                            (0x00000012UL)</span></div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno">  332</span><span class="preprocessor">#define SPI_DATASIZE_20BIT                            (0x00000013UL)</span></div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno">  333</span><span class="preprocessor">#define SPI_DATASIZE_21BIT                            (0x00000014UL)</span></div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno">  334</span><span class="preprocessor">#define SPI_DATASIZE_22BIT                            (0x00000015UL)</span></div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno">  335</span><span class="preprocessor">#define SPI_DATASIZE_23BIT                            (0x00000016UL)</span></div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno">  336</span><span class="preprocessor">#define SPI_DATASIZE_24BIT                            (0x00000017UL)</span></div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno">  337</span><span class="preprocessor">#define SPI_DATASIZE_25BIT                            (0x00000018UL)</span></div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno">  338</span><span class="preprocessor">#define SPI_DATASIZE_26BIT                            (0x00000019UL)</span></div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno">  339</span><span class="preprocessor">#define SPI_DATASIZE_27BIT                            (0x0000001AUL)</span></div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno">  340</span><span class="preprocessor">#define SPI_DATASIZE_28BIT                            (0x0000001BUL)</span></div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno">  341</span><span class="preprocessor">#define SPI_DATASIZE_29BIT                            (0x0000001CUL)</span></div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno">  342</span><span class="preprocessor">#define SPI_DATASIZE_30BIT                            (0x0000001DUL)</span></div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno">  343</span><span class="preprocessor">#define SPI_DATASIZE_31BIT                            (0x0000001EUL)</span></div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno">  344</span><span class="preprocessor">#define SPI_DATASIZE_32BIT                            (0x0000001FUL)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno">  348</span></div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno">  352</span><span class="preprocessor">#define SPI_POLARITY_LOW                              (0x00000000UL)</span></div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno">  353</span><span class="preprocessor">#define SPI_POLARITY_HIGH                             SPI_CFG2_CPOL</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno">  357</span></div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno">  361</span><span class="preprocessor">#define SPI_PHASE_1EDGE                               (0x00000000UL)</span></div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span><span class="preprocessor">#define SPI_PHASE_2EDGE                               SPI_CFG2_CPHA</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno">  366</span></div>
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno">  370</span><span class="preprocessor">#define SPI_NSS_SOFT                                  SPI_CFG2_SSM</span></div>
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno">  371</span><span class="preprocessor">#define SPI_NSS_HARD_INPUT                            (0x00000000UL)</span></div>
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno">  372</span><span class="preprocessor">#define SPI_NSS_HARD_OUTPUT                           SPI_CFG2_SSOE</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno">  376</span></div>
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno">  380</span><span class="preprocessor">#define SPI_NSS_PULSE_DISABLE                         (0x00000000UL)</span></div>
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno">  381</span><span class="preprocessor">#define SPI_NSS_PULSE_ENABLE                          SPI_CFG2_SSOM</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno">  385</span></div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno">  389</span><span class="preprocessor">#define SPI_BAUDRATEPRESCALER_2                       (0x00000000UL)</span></div>
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno">  390</span><span class="preprocessor">#define SPI_BAUDRATEPRESCALER_4                       (0x10000000UL)</span></div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno">  391</span><span class="preprocessor">#define SPI_BAUDRATEPRESCALER_8                       (0x20000000UL)</span></div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno">  392</span><span class="preprocessor">#define SPI_BAUDRATEPRESCALER_16                      (0x30000000UL)</span></div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno">  393</span><span class="preprocessor">#define SPI_BAUDRATEPRESCALER_32                      (0x40000000UL)</span></div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno">  394</span><span class="preprocessor">#define SPI_BAUDRATEPRESCALER_64                      (0x50000000UL)</span></div>
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno">  395</span><span class="preprocessor">#define SPI_BAUDRATEPRESCALER_128                     (0x60000000UL)</span></div>
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno">  396</span><span class="preprocessor">#define SPI_BAUDRATEPRESCALER_256                     (0x70000000UL)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno">  400</span></div>
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno">  404</span><span class="preprocessor">#define SPI_FIRSTBIT_MSB                              (0x00000000UL)</span></div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno">  405</span><span class="preprocessor">#define SPI_FIRSTBIT_LSB                              SPI_CFG2_LSBFRST</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span></div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno">  413</span><span class="preprocessor">#define SPI_TIMODE_DISABLE                            (0x00000000UL)</span></div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno">  414</span><span class="preprocessor">#define SPI_TIMODE_ENABLE                             SPI_CFG2_SP_0</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno">  418</span></div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno">  422</span><span class="preprocessor">#define SPI_CRCCALCULATION_DISABLE                    (0x00000000UL)</span></div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno">  423</span><span class="preprocessor">#define SPI_CRCCALCULATION_ENABLE                     SPI_CFG1_CRCEN</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno">  427</span></div>
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno">  431</span><span class="preprocessor">#define SPI_CRC_LENGTH_DATASIZE                       (0x00000000UL)</span></div>
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno">  432</span><span class="preprocessor">#define SPI_CRC_LENGTH_4BIT                           (0x00030000UL)</span></div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno">  433</span><span class="preprocessor">#define SPI_CRC_LENGTH_5BIT                           (0x00040000UL)</span></div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno">  434</span><span class="preprocessor">#define SPI_CRC_LENGTH_6BIT                           (0x00050000UL)</span></div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno">  435</span><span class="preprocessor">#define SPI_CRC_LENGTH_7BIT                           (0x00060000UL)</span></div>
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno">  436</span><span class="preprocessor">#define SPI_CRC_LENGTH_8BIT                           (0x00070000UL)</span></div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span><span class="preprocessor">#define SPI_CRC_LENGTH_9BIT                           (0x00080000UL)</span></div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span><span class="preprocessor">#define SPI_CRC_LENGTH_10BIT                          (0x00090000UL)</span></div>
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno">  439</span><span class="preprocessor">#define SPI_CRC_LENGTH_11BIT                          (0x000A0000UL)</span></div>
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno">  440</span><span class="preprocessor">#define SPI_CRC_LENGTH_12BIT                          (0x000B0000UL)</span></div>
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno">  441</span><span class="preprocessor">#define SPI_CRC_LENGTH_13BIT                          (0x000C0000UL)</span></div>
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno">  442</span><span class="preprocessor">#define SPI_CRC_LENGTH_14BIT                          (0x000D0000UL)</span></div>
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno">  443</span><span class="preprocessor">#define SPI_CRC_LENGTH_15BIT                          (0x000E0000UL)</span></div>
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno">  444</span><span class="preprocessor">#define SPI_CRC_LENGTH_16BIT                          (0x000F0000UL)</span></div>
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno">  445</span><span class="preprocessor">#define SPI_CRC_LENGTH_17BIT                          (0x00100000UL)</span></div>
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno">  446</span><span class="preprocessor">#define SPI_CRC_LENGTH_18BIT                          (0x00110000UL)</span></div>
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno">  447</span><span class="preprocessor">#define SPI_CRC_LENGTH_19BIT                          (0x00120000UL)</span></div>
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno">  448</span><span class="preprocessor">#define SPI_CRC_LENGTH_20BIT                          (0x00130000UL)</span></div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno">  449</span><span class="preprocessor">#define SPI_CRC_LENGTH_21BIT                          (0x00140000UL)</span></div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno">  450</span><span class="preprocessor">#define SPI_CRC_LENGTH_22BIT                          (0x00150000UL)</span></div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno">  451</span><span class="preprocessor">#define SPI_CRC_LENGTH_23BIT                          (0x00160000UL)</span></div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno">  452</span><span class="preprocessor">#define SPI_CRC_LENGTH_24BIT                          (0x00170000UL)</span></div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno">  453</span><span class="preprocessor">#define SPI_CRC_LENGTH_25BIT                          (0x00180000UL)</span></div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno">  454</span><span class="preprocessor">#define SPI_CRC_LENGTH_26BIT                          (0x00190000UL)</span></div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span><span class="preprocessor">#define SPI_CRC_LENGTH_27BIT                          (0x001A0000UL)</span></div>
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno">  456</span><span class="preprocessor">#define SPI_CRC_LENGTH_28BIT                          (0x001B0000UL)</span></div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span><span class="preprocessor">#define SPI_CRC_LENGTH_29BIT                          (0x001C0000UL)</span></div>
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno">  458</span><span class="preprocessor">#define SPI_CRC_LENGTH_30BIT                          (0x001D0000UL)</span></div>
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno">  459</span><span class="preprocessor">#define SPI_CRC_LENGTH_31BIT                          (0x001E0000UL)</span></div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno">  460</span><span class="preprocessor">#define SPI_CRC_LENGTH_32BIT                          (0x001F0000UL)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno">  464</span></div>
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno">  468</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_01DATA                     (0x00000000UL)</span></div>
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno">  469</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_02DATA                     (0x00000020UL)</span></div>
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno">  470</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_03DATA                     (0x00000040UL)</span></div>
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno">  471</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_04DATA                     (0x00000060UL)</span></div>
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno">  472</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_05DATA                     (0x00000080UL)</span></div>
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno">  473</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_06DATA                     (0x000000A0UL)</span></div>
<div class="line"><a id="l00474" name="l00474"></a><span class="lineno">  474</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_07DATA                     (0x000000C0UL)</span></div>
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno">  475</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_08DATA                     (0x000000E0UL)</span></div>
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno">  476</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_09DATA                     (0x00000100UL)</span></div>
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno">  477</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_10DATA                     (0x00000120UL)</span></div>
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno">  478</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_11DATA                     (0x00000140UL)</span></div>
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno">  479</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_12DATA                     (0x00000160UL)</span></div>
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno">  480</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_13DATA                     (0x00000180UL)</span></div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno">  481</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_14DATA                     (0x000001A0UL)</span></div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno">  482</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_15DATA                     (0x000001C0UL)</span></div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno">  483</span><span class="preprocessor">#define SPI_FIFO_THRESHOLD_16DATA                     (0x000001E0UL)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno">  487</span></div>
<div class="line"><a id="l00491" name="l00491"></a><span class="lineno">  491</span><span class="preprocessor">#define SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN       (0x00000000UL)</span></div>
<div class="line"><a id="l00492" name="l00492"></a><span class="lineno">  492</span><span class="preprocessor">#define SPI_CRC_INITIALIZATION_ALL_ONE_PATTERN        (0x00000001UL)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno">  496</span></div>
<div class="line"><a id="l00500" name="l00500"></a><span class="lineno">  500</span><span class="preprocessor">#define SPI_NSS_POLARITY_LOW                          (0x00000000UL)</span></div>
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno">  501</span><span class="preprocessor">#define SPI_NSS_POLARITY_HIGH                          SPI_CFG2_SSIOP</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00505" name="l00505"></a><span class="lineno">  505</span></div>
<div class="line"><a id="l00509" name="l00509"></a><span class="lineno">  509</span><span class="preprocessor">#define SPI_MASTER_KEEP_IO_STATE_DISABLE              (0x00000000UL)</span></div>
<div class="line"><a id="l00510" name="l00510"></a><span class="lineno">  510</span><span class="preprocessor">#define SPI_MASTER_KEEP_IO_STATE_ENABLE               SPI_CFG2_AFCNTR</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00514" name="l00514"></a><span class="lineno">  514</span></div>
<div class="line"><a id="l00518" name="l00518"></a><span class="lineno">  518</span><span class="preprocessor">#define SPI_IO_SWAP_DISABLE                           (0x00000000UL)</span></div>
<div class="line"><a id="l00519" name="l00519"></a><span class="lineno">  519</span><span class="preprocessor">#define SPI_IO_SWAP_ENABLE                            SPI_CFG2_IOSWP</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00523" name="l00523"></a><span class="lineno">  523</span></div>
<div class="line"><a id="l00527" name="l00527"></a><span class="lineno">  527</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_00CYCLE                (0x00000000UL)</span></div>
<div class="line"><a id="l00528" name="l00528"></a><span class="lineno">  528</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_01CYCLE                (0x00000001UL)</span></div>
<div class="line"><a id="l00529" name="l00529"></a><span class="lineno">  529</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_02CYCLE                (0x00000002UL)</span></div>
<div class="line"><a id="l00530" name="l00530"></a><span class="lineno">  530</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_03CYCLE                (0x00000003UL)</span></div>
<div class="line"><a id="l00531" name="l00531"></a><span class="lineno">  531</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_04CYCLE                (0x00000004UL)</span></div>
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno">  532</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_05CYCLE                (0x00000005UL)</span></div>
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno">  533</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_06CYCLE                (0x00000006UL)</span></div>
<div class="line"><a id="l00534" name="l00534"></a><span class="lineno">  534</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_07CYCLE                (0x00000007UL)</span></div>
<div class="line"><a id="l00535" name="l00535"></a><span class="lineno">  535</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_08CYCLE                (0x00000008UL)</span></div>
<div class="line"><a id="l00536" name="l00536"></a><span class="lineno">  536</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_09CYCLE                (0x00000009UL)</span></div>
<div class="line"><a id="l00537" name="l00537"></a><span class="lineno">  537</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_10CYCLE                (0x0000000AUL)</span></div>
<div class="line"><a id="l00538" name="l00538"></a><span class="lineno">  538</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_11CYCLE                (0x0000000BUL)</span></div>
<div class="line"><a id="l00539" name="l00539"></a><span class="lineno">  539</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_12CYCLE                (0x0000000CUL)</span></div>
<div class="line"><a id="l00540" name="l00540"></a><span class="lineno">  540</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_13CYCLE                (0x0000000DUL)</span></div>
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno">  541</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_14CYCLE                (0x0000000EUL)</span></div>
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno">  542</span><span class="preprocessor">#define SPI_MASTER_SS_IDLENESS_15CYCLE                (0x0000000FUL)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00546" name="l00546"></a><span class="lineno">  546</span></div>
<div class="line"><a id="l00550" name="l00550"></a><span class="lineno">  550</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_00CYCLE         (0x00000000UL)</span></div>
<div class="line"><a id="l00551" name="l00551"></a><span class="lineno">  551</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_01CYCLE         (0x00000010UL)</span></div>
<div class="line"><a id="l00552" name="l00552"></a><span class="lineno">  552</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_02CYCLE         (0x00000020UL)</span></div>
<div class="line"><a id="l00553" name="l00553"></a><span class="lineno">  553</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_03CYCLE         (0x00000030UL)</span></div>
<div class="line"><a id="l00554" name="l00554"></a><span class="lineno">  554</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_04CYCLE         (0x00000040UL)</span></div>
<div class="line"><a id="l00555" name="l00555"></a><span class="lineno">  555</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_05CYCLE         (0x00000050UL)</span></div>
<div class="line"><a id="l00556" name="l00556"></a><span class="lineno">  556</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_06CYCLE         (0x00000060UL)</span></div>
<div class="line"><a id="l00557" name="l00557"></a><span class="lineno">  557</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_07CYCLE         (0x00000070UL)</span></div>
<div class="line"><a id="l00558" name="l00558"></a><span class="lineno">  558</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_08CYCLE         (0x00000080UL)</span></div>
<div class="line"><a id="l00559" name="l00559"></a><span class="lineno">  559</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_09CYCLE         (0x00000090UL)</span></div>
<div class="line"><a id="l00560" name="l00560"></a><span class="lineno">  560</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_10CYCLE         (0x000000A0UL)</span></div>
<div class="line"><a id="l00561" name="l00561"></a><span class="lineno">  561</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_11CYCLE         (0x000000B0UL)</span></div>
<div class="line"><a id="l00562" name="l00562"></a><span class="lineno">  562</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_12CYCLE         (0x000000C0UL)</span></div>
<div class="line"><a id="l00563" name="l00563"></a><span class="lineno">  563</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_13CYCLE         (0x000000D0UL)</span></div>
<div class="line"><a id="l00564" name="l00564"></a><span class="lineno">  564</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_14CYCLE         (0x000000E0UL)</span></div>
<div class="line"><a id="l00565" name="l00565"></a><span class="lineno">  565</span><span class="preprocessor">#define SPI_MASTER_INTERDATA_IDLENESS_15CYCLE         (0x000000F0UL)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00569" name="l00569"></a><span class="lineno">  569</span></div>
<div class="line"><a id="l00573" name="l00573"></a><span class="lineno">  573</span><span class="preprocessor">#define SPI_MASTER_RX_AUTOSUSP_DISABLE                (0x00000000UL)</span></div>
<div class="line"><a id="l00574" name="l00574"></a><span class="lineno">  574</span><span class="preprocessor">#define SPI_MASTER_RX_AUTOSUSP_ENABLE                 SPI_CR1_MASRX</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00578" name="l00578"></a><span class="lineno">  578</span></div>
<div class="line"><a id="l00582" name="l00582"></a><span class="lineno">  582</span><span class="preprocessor">#define SPI_UNDERRUN_BEHAV_REGISTER_PATTERN           (0x00000000UL)</span></div>
<div class="line"><a id="l00583" name="l00583"></a><span class="lineno">  583</span><span class="preprocessor">#define SPI_UNDERRUN_BEHAV_LAST_RECEIVED              SPI_CFG1_UDRCFG_0</span></div>
<div class="line"><a id="l00584" name="l00584"></a><span class="lineno">  584</span><span class="preprocessor">#define SPI_UNDERRUN_BEHAV_LAST_TRANSMITTED           SPI_CFG1_UDRCFG_1</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00588" name="l00588"></a><span class="lineno">  588</span></div>
<div class="line"><a id="l00592" name="l00592"></a><span class="lineno">  592</span><span class="preprocessor">#define SPI_UNDERRUN_DETECT_BEGIN_DATA_FRAME          (0x00000000UL)</span></div>
<div class="line"><a id="l00593" name="l00593"></a><span class="lineno">  593</span><span class="preprocessor">#define SPI_UNDERRUN_DETECT_END_DATA_FRAME            SPI_CFG1_UDRDET_0</span></div>
<div class="line"><a id="l00594" name="l00594"></a><span class="lineno">  594</span><span class="preprocessor">#define SPI_UNDERRUN_DETECT_BEGIN_ACTIVE_NSS          SPI_CFG1_UDRDET_1</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00598" name="l00598"></a><span class="lineno">  598</span></div>
<div class="line"><a id="l00602" name="l00602"></a><span class="lineno">  602</span><span class="preprocessor">#define SPI_IT_RXP                      SPI_IER_RXPIE</span></div>
<div class="line"><a id="l00603" name="l00603"></a><span class="lineno">  603</span><span class="preprocessor">#define SPI_IT_TXP                      SPI_IER_TXPIE</span></div>
<div class="line"><a id="l00604" name="l00604"></a><span class="lineno">  604</span><span class="preprocessor">#define SPI_IT_DXP                      SPI_IER_DXPIE</span></div>
<div class="line"><a id="l00605" name="l00605"></a><span class="lineno">  605</span><span class="preprocessor">#define SPI_IT_EOT                      SPI_IER_EOTIE</span></div>
<div class="line"><a id="l00606" name="l00606"></a><span class="lineno">  606</span><span class="preprocessor">#define SPI_IT_TXTF                     SPI_IER_TXTFIE</span></div>
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno">  607</span><span class="preprocessor">#define SPI_IT_UDR                      SPI_IER_UDRIE</span></div>
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno">  608</span><span class="preprocessor">#define SPI_IT_OVR                      SPI_IER_OVRIE</span></div>
<div class="line"><a id="l00609" name="l00609"></a><span class="lineno">  609</span><span class="preprocessor">#define SPI_IT_CRCERR                   SPI_IER_CRCEIE</span></div>
<div class="line"><a id="l00610" name="l00610"></a><span class="lineno">  610</span><span class="preprocessor">#define SPI_IT_FRE                      SPI_IER_TIFREIE</span></div>
<div class="line"><a id="l00611" name="l00611"></a><span class="lineno">  611</span><span class="preprocessor">#define SPI_IT_MODF                     SPI_IER_MODFIE</span></div>
<div class="line"><a id="l00612" name="l00612"></a><span class="lineno">  612</span><span class="preprocessor">#define SPI_IT_TSERF                    SPI_IER_TSERFIE</span></div>
<div class="line"><a id="l00613" name="l00613"></a><span class="lineno">  613</span><span class="preprocessor">#define SPI_IT_ERR                      (SPI_IT_UDR | SPI_IT_OVR | SPI_IT_FRE | SPI_IT_MODF | SPI_IT_CRCERR)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00617" name="l00617"></a><span class="lineno">  617</span></div>
<div class="line"><a id="l00621" name="l00621"></a><span class="lineno">  621</span><span class="preprocessor">#define SPI_FLAG_RXP                    SPI_SR_RXP     </span><span class="comment">/* SPI status flag : Rx-Packet available flag                 */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00622" name="l00622"></a><span class="lineno">  622</span><span class="preprocessor">#define SPI_FLAG_TXP                    SPI_SR_TXP     </span><span class="comment">/* SPI status flag : Tx-Packet space available flag           */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00623" name="l00623"></a><span class="lineno">  623</span><span class="preprocessor">#define SPI_FLAG_DXP                    SPI_SR_DXP     </span><span class="comment">/* SPI status flag : Duplex Packet flag                       */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno">  624</span><span class="preprocessor">#define SPI_FLAG_EOT                    SPI_SR_EOT     </span><span class="comment">/* SPI status flag : End of transfer flag                     */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno">  625</span><span class="preprocessor">#define SPI_FLAG_TXTF                   SPI_SR_TXTF    </span><span class="comment">/* SPI status flag : Transmission Transfer Filled flag        */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00626" name="l00626"></a><span class="lineno">  626</span><span class="preprocessor">#define SPI_FLAG_UDR                    SPI_SR_UDR     </span><span class="comment">/* SPI Error flag  : Underrun flag                            */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00627" name="l00627"></a><span class="lineno">  627</span><span class="preprocessor">#define SPI_FLAG_OVR                    SPI_SR_OVR     </span><span class="comment">/* SPI Error flag  : Overrun flag                             */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00628" name="l00628"></a><span class="lineno">  628</span><span class="preprocessor">#define SPI_FLAG_CRCERR                 SPI_SR_CRCE    </span><span class="comment">/* SPI Error flag  : CRC error flag                           */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00629" name="l00629"></a><span class="lineno">  629</span><span class="preprocessor">#define SPI_FLAG_FRE                    SPI_SR_TIFRE   </span><span class="comment">/* SPI Error flag  : TI mode frame format error flag          */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00630" name="l00630"></a><span class="lineno">  630</span><span class="preprocessor">#define SPI_FLAG_MODF                   SPI_SR_MODF    </span><span class="comment">/* SPI Error flag  : Mode fault flag                          */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00631" name="l00631"></a><span class="lineno">  631</span><span class="preprocessor">#define SPI_FLAG_TSERF                  SPI_SR_TSERF   </span><span class="comment">/* SPI status flag : Additional number of data reloaded flag  */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00632" name="l00632"></a><span class="lineno">  632</span><span class="preprocessor">#define SPI_FLAG_SUSP                   SPI_SR_SUSP    </span><span class="comment">/* SPI status flag : Transfer suspend complete flag           */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00633" name="l00633"></a><span class="lineno">  633</span><span class="preprocessor">#define SPI_FLAG_TXC                    SPI_SR_TXC     </span><span class="comment">/* SPI status flag : TxFIFO transmission complete flag        */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00634" name="l00634"></a><span class="lineno">  634</span><span class="preprocessor">#define SPI_FLAG_FRLVL                  SPI_SR_RXPLVL  </span><span class="comment">/* SPI status flag : Fifo reception level flag                */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00635" name="l00635"></a><span class="lineno">  635</span><span class="preprocessor">#define SPI_FLAG_RXWNE                  SPI_SR_RXWNE   </span><span class="comment">/* SPI status flag : RxFIFO word not empty flag               */</span><span class="preprocessor"></span><span class="preprocessor"></span></div>
<div class="line"><a id="l00639" name="l00639"></a><span class="lineno">  639</span></div>
<div class="line"><a id="l00643" name="l00643"></a><span class="lineno">  643</span><span class="preprocessor">#define SPI_RX_FIFO_0PACKET             (0x00000000UL)         </span><span class="comment">/* 0 or multiple of 4 packets available in the RxFIFO */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00644" name="l00644"></a><span class="lineno">  644</span><span class="preprocessor">#define SPI_RX_FIFO_1PACKET             (SPI_SR_RXPLVL_0)</span></div>
<div class="line"><a id="l00645" name="l00645"></a><span class="lineno">  645</span><span class="preprocessor">#define SPI_RX_FIFO_2PACKET             (SPI_SR_RXPLVL_1)</span></div>
<div class="line"><a id="l00646" name="l00646"></a><span class="lineno">  646</span><span class="preprocessor">#define SPI_RX_FIFO_3PACKET             (SPI_SR_RXPLVL_1 | SPI_SR_RXPLVL_0)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00650" name="l00650"></a><span class="lineno">  650</span></div>
<div class="line"><a id="l00654" name="l00654"></a><span class="lineno">  654</span> </div>
<div class="line"><a id="l00655" name="l00655"></a><span class="lineno">  655</span><span class="comment">/* Exported macros -----------------------------------------------------------*/</span></div>
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno">  659</span></div>
<div class="line"><a id="l00665" name="l00665"></a><span class="lineno">  665</span><span class="preprocessor">#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1UL)</span></div>
<div class="line"><a id="l00666" name="l00666"></a><span class="lineno">  666</span><span class="preprocessor">#define __HAL_SPI_RESET_HANDLE_STATE(__HANDLE__)   do{                                                  \</span></div>
<div class="line"><a id="l00667" name="l00667"></a><span class="lineno">  667</span><span class="preprocessor">                                                       (__HANDLE__)-&gt;State = HAL_SPI_STATE_RESET;       \</span></div>
<div class="line"><a id="l00668" name="l00668"></a><span class="lineno">  668</span><span class="preprocessor">                                                       (__HANDLE__)-&gt;MspInitCallback = NULL;            \</span></div>
<div class="line"><a id="l00669" name="l00669"></a><span class="lineno">  669</span><span class="preprocessor">                                                       (__HANDLE__)-&gt;MspDeInitCallback = NULL;          \</span></div>
<div class="line"><a id="l00670" name="l00670"></a><span class="lineno">  670</span><span class="preprocessor">                                                     } while(0)</span></div>
<div class="line"><a id="l00671" name="l00671"></a><span class="lineno">  671</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00672" name="l00672"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#ga0d846f9517715960873e854b4a0790b0">  672</a></span><span class="preprocessor">#define __HAL_SPI_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)-&gt;State = HAL_SPI_STATE_RESET)</span></div>
<div class="line"><a id="l00673" name="l00673"></a><span class="lineno">  673</span><span class="preprocessor">#endif </span><span class="comment">/* USE_HAL_SPI_REGISTER_CALLBACKS */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00674" name="l00674"></a><span class="lineno">  674</span></div>
<div class="line"><a id="l00694" name="l00694"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#ga76064652f6f56d8868720b5541e854f5">  694</a></span><span class="preprocessor">#define __HAL_SPI_ENABLE_IT(__HANDLE__, __INTERRUPT__)   ((__HANDLE__)-&gt;Instance-&gt;IER |= (__INTERRUPT__))</span></div>
<div class="line"><a id="l00695" name="l00695"></a><span class="lineno">  695</span></div>
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#ga47fa7321c5755bfbff1a7229fbe5b21c">  715</a></span><span class="preprocessor">#define __HAL_SPI_DISABLE_IT(__HANDLE__, __INTERRUPT__)  ((__HANDLE__)-&gt;Instance-&gt;IER &amp;= (~(__INTERRUPT__)))</span></div>
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno">  716</span></div>
<div class="foldopen" id="foldopen00736" data-start="" data-end="">
<div class="line"><a id="l00736" name="l00736"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#gabdaab061e4603331a0ec4b9d651df0b5">  736</a></span><span class="preprocessor">#define __HAL_SPI_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)-&gt;Instance-&gt;IER &amp; \</span></div>
<div class="line"><a id="l00737" name="l00737"></a><span class="lineno">  737</span><span class="preprocessor">                                                              (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET)</span></div>
</div>
<div class="line"><a id="l00738" name="l00738"></a><span class="lineno">  738</span></div>
<div class="line"><a id="l00761" name="l00761"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#gaa0bbe5fb55f93fd277ddb6acf58cec53">  761</a></span><span class="preprocessor">#define __HAL_SPI_GET_FLAG(__HANDLE__, __FLAG__) ((((__HANDLE__)-&gt;Instance-&gt;SR) &amp; (__FLAG__)) == (__FLAG__))</span></div>
<div class="line"><a id="l00762" name="l00762"></a><span class="lineno">  762</span></div>
<div class="line"><a id="l00767" name="l00767"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#gad1cb4100b67726531ad426d300f4cd26">  767</a></span><span class="preprocessor">#define __HAL_SPI_CLEAR_CRCERRFLAG(__HANDLE__) SET_BIT((__HANDLE__)-&gt;Instance-&gt;IFCR , SPI_IFCR_CRCEC)</span></div>
<div class="line"><a id="l00768" name="l00768"></a><span class="lineno">  768</span></div>
<div class="line"><a id="l00773" name="l00773"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#ga6c88becbe528c542156bc201622efba2">  773</a></span><span class="preprocessor">#define __HAL_SPI_CLEAR_MODFFLAG(__HANDLE__)  SET_BIT((__HANDLE__)-&gt;Instance-&gt;IFCR , (uint32_t)(SPI_IFCR_MODFC));</span></div>
<div class="line"><a id="l00774" name="l00774"></a><span class="lineno">  774</span></div>
<div class="line"><a id="l00779" name="l00779"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#gaf6af33b1c5d334b9fe7bb778c5b6442e">  779</a></span><span class="preprocessor">#define __HAL_SPI_CLEAR_OVRFLAG(__HANDLE__) SET_BIT((__HANDLE__)-&gt;Instance-&gt;IFCR , SPI_IFCR_OVRC)</span></div>
<div class="line"><a id="l00780" name="l00780"></a><span class="lineno">  780</span></div>
<div class="line"><a id="l00785" name="l00785"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#ga7ff182f5cf6c731318c882351d6d7ac2">  785</a></span><span class="preprocessor">#define __HAL_SPI_CLEAR_FREFLAG(__HANDLE__) SET_BIT((__HANDLE__)-&gt;Instance-&gt;IFCR , SPI_IFCR_TIFREC)</span></div>
<div class="line"><a id="l00786" name="l00786"></a><span class="lineno">  786</span></div>
<div class="line"><a id="l00791" name="l00791"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#ga788e7e6782849d79499064b05050627e">  791</a></span><span class="preprocessor">#define __HAL_SPI_CLEAR_UDRFLAG(__HANDLE__) SET_BIT((__HANDLE__)-&gt;Instance-&gt;IFCR , SPI_IFCR_UDRC)</span></div>
<div class="line"><a id="l00792" name="l00792"></a><span class="lineno">  792</span></div>
<div class="line"><a id="l00797" name="l00797"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#ga82b82dd74c0fe69c823e92323fde890a">  797</a></span><span class="preprocessor">#define __HAL_SPI_CLEAR_EOTFLAG(__HANDLE__) SET_BIT((__HANDLE__)-&gt;Instance-&gt;IFCR , SPI_IFCR_EOTC)</span></div>
<div class="line"><a id="l00798" name="l00798"></a><span class="lineno">  798</span></div>
<div class="line"><a id="l00803" name="l00803"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#gac4e14a47b0110348bb2edf1eb6023a50">  803</a></span><span class="preprocessor">#define __HAL_SPI_CLEAR_TXTFFLAG(__HANDLE__) SET_BIT((__HANDLE__)-&gt;Instance-&gt;IFCR , SPI_IFCR_TXTFC)</span></div>
<div class="line"><a id="l00804" name="l00804"></a><span class="lineno">  804</span></div>
<div class="line"><a id="l00809" name="l00809"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#ga76cb5dc888df5c6d19675e4d076b750d">  809</a></span><span class="preprocessor">#define __HAL_SPI_CLEAR_SUSPFLAG(__HANDLE__) SET_BIT((__HANDLE__)-&gt;Instance-&gt;IFCR , SPI_IFCR_SUSPC)</span></div>
<div class="line"><a id="l00810" name="l00810"></a><span class="lineno">  810</span></div>
<div class="line"><a id="l00815" name="l00815"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#ga9a45859eee2e15a4a6367cc4a5066c8b">  815</a></span><span class="preprocessor">#define __HAL_SPI_CLEAR_TSERFFLAG(__HANDLE__) SET_BIT((__HANDLE__)-&gt;Instance-&gt;IFCR , SPI_IFCR_TSERFC)</span></div>
<div class="line"><a id="l00816" name="l00816"></a><span class="lineno">  816</span></div>
<div class="line"><a id="l00821" name="l00821"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#ga16d2d73c2b16004499ae8d492e71fd4e">  821</a></span><span class="preprocessor">#define __HAL_SPI_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)-&gt;Instance-&gt;CR1 , SPI_CR1_SPE)</span></div>
<div class="line"><a id="l00822" name="l00822"></a><span class="lineno">  822</span></div>
<div class="line"><a id="l00827" name="l00827"></a><span class="lineno"><a class="line" href="group___s_p_i___exported___macros.html#gaa10d88f87d16de53bd81dfb33bd56959">  827</a></span><span class="preprocessor">#define __HAL_SPI_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)-&gt;Instance-&gt;CR1 , SPI_CR1_SPE)</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00831" name="l00831"></a><span class="lineno">  831</span> </div>
<div class="line"><a id="l00832" name="l00832"></a><span class="lineno">  832</span> </div>
<div class="line"><a id="l00833" name="l00833"></a><span class="lineno">  833</span><span class="comment">/* Include SPI HAL Extension module */</span></div>
<div class="line"><a id="l00834" name="l00834"></a><span class="lineno">  834</span><span class="preprocessor">#include &quot;<a class="code" href="stm32h7xx__hal__spi__ex_8h.html">stm32h7xx_hal_spi_ex.h</a>&quot;</span></div>
<div class="line"><a id="l00835" name="l00835"></a><span class="lineno">  835</span> </div>
<div class="line"><a id="l00836" name="l00836"></a><span class="lineno">  836</span> </div>
<div class="line"><a id="l00837" name="l00837"></a><span class="lineno">  837</span><span class="comment">/* Exported functions --------------------------------------------------------*/</span></div>
<div class="line"><a id="l00841" name="l00841"></a><span class="lineno">  841</span></div>
<div class="line"><a id="l00845" name="l00845"></a><span class="lineno">  845</span><span class="comment">/* Initialization/de-initialization functions  ********************************/</span></div>
<div class="line"><a id="l00846" name="l00846"></a><span class="lineno">  846</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Init(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00847" name="l00847"></a><span class="lineno">  847</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_DeInit(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00848" name="l00848"></a><span class="lineno">  848</span><span class="keywordtype">void</span> <a class="code hl_function" href="group___s_p_i___exported___functions___group1.html#ga17f583be14b22caffa6c4e56dcd035ef">HAL_SPI_MspInit</a>(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00849" name="l00849"></a><span class="lineno">  849</span><span class="keywordtype">void</span> <a class="code hl_function" href="group___s_p_i___exported___functions___group1.html#gabadc4d4974af1afd943e8d13589068e1">HAL_SPI_MspDeInit</a>(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00850" name="l00850"></a><span class="lineno">  850</span> </div>
<div class="line"><a id="l00851" name="l00851"></a><span class="lineno">  851</span><span class="comment">/* Callbacks Register/UnRegister functions  ***********************************/</span></div>
<div class="line"><a id="l00852" name="l00852"></a><span class="lineno">  852</span><span class="preprocessor">#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U)</span></div>
<div class="line"><a id="l00853" name="l00853"></a><span class="lineno">  853</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_RegisterCallback(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, HAL_SPI_CallbackIDTypeDef CallbackID,</div>
<div class="line"><a id="l00854" name="l00854"></a><span class="lineno">  854</span>                                           pSPI_CallbackTypeDef pCallback);</div>
<div class="line"><a id="l00855" name="l00855"></a><span class="lineno">  855</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_UnRegisterCallback(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, HAL_SPI_CallbackIDTypeDef CallbackID);</div>
<div class="line"><a id="l00856" name="l00856"></a><span class="lineno">  856</span><span class="preprocessor">#endif </span><span class="comment">/* USE_HAL_SPI_REGISTER_CALLBACKS */</span><span class="preprocessor"></span><span class="preprocessor"></span></div>
<div class="line"><a id="l00860" name="l00860"></a><span class="lineno">  860</span></div>
<div class="line"><a id="l00864" name="l00864"></a><span class="lineno">  864</span><span class="comment">/* I/O operation functions  ***************************************************/</span></div>
<div class="line"><a id="l00865" name="l00865"></a><span class="lineno">  865</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Transmit(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, <span class="keyword">const</span> uint8_t *pData, uint16_t Size, uint32_t Timeout);</div>
<div class="line"><a id="l00866" name="l00866"></a><span class="lineno">  866</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Receive(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout);</div>
<div class="line"><a id="l00867" name="l00867"></a><span class="lineno">  867</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_TransmitReceive(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, <span class="keyword">const</span> uint8_t *pTxData, uint8_t *pRxData,</div>
<div class="line"><a id="l00868" name="l00868"></a><span class="lineno">  868</span>                                          uint16_t Size, uint32_t Timeout);</div>
<div class="line"><a id="l00869" name="l00869"></a><span class="lineno">  869</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Transmit_IT(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, <span class="keyword">const</span> uint8_t *pData, uint16_t Size);</div>
<div class="line"><a id="l00870" name="l00870"></a><span class="lineno">  870</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Receive_IT(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, uint8_t *pData, uint16_t Size);</div>
<div class="line"><a id="l00871" name="l00871"></a><span class="lineno">  871</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_TransmitReceive_IT(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, <span class="keyword">const</span> uint8_t *pTxData, uint8_t *pRxData,</div>
<div class="line"><a id="l00872" name="l00872"></a><span class="lineno">  872</span>                                             uint16_t Size);</div>
<div class="line"><a id="l00873" name="l00873"></a><span class="lineno">  873</span> </div>
<div class="line"><a id="l00874" name="l00874"></a><span class="lineno">  874</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Transmit_DMA(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, <span class="keyword">const</span> uint8_t *pData, uint16_t Size);</div>
<div class="line"><a id="l00875" name="l00875"></a><span class="lineno">  875</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Receive_DMA(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, uint8_t *pData, uint16_t Size);</div>
<div class="line"><a id="l00876" name="l00876"></a><span class="lineno">  876</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_TransmitReceive_DMA(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, <span class="keyword">const</span> uint8_t *pTxData, uint8_t *pRxData,</div>
<div class="line"><a id="l00877" name="l00877"></a><span class="lineno">  877</span>                                              uint16_t Size);</div>
<div class="line"><a id="l00878" name="l00878"></a><span class="lineno">  878</span> </div>
<div class="line"><a id="l00879" name="l00879"></a><span class="lineno">  879</span><span class="preprocessor">#if defined(USE_SPI_RELOAD_TRANSFER)</span></div>
<div class="line"><a id="l00880" name="l00880"></a><span class="lineno">  880</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Reload_Transmit_IT(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, <span class="keyword">const</span> uint8_t *pData, uint16_t Size);</div>
<div class="line"><a id="l00881" name="l00881"></a><span class="lineno">  881</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Reload_Receive_IT(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, uint8_t *pData, uint16_t Size);</div>
<div class="line"><a id="l00882" name="l00882"></a><span class="lineno">  882</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Reload_TransmitReceive_IT(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi, <span class="keyword">const</span> uint8_t *pTxData,</div>
<div class="line"><a id="l00883" name="l00883"></a><span class="lineno">  883</span>                                                    uint8_t *pRxData, uint16_t Size);</div>
<div class="line"><a id="l00884" name="l00884"></a><span class="lineno">  884</span><span class="preprocessor">#endif </span><span class="comment">/* USE_SPI_RELOAD_TRANSFER */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00885" name="l00885"></a><span class="lineno">  885</span> </div>
<div class="line"><a id="l00886" name="l00886"></a><span class="lineno">  886</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_DMAPause(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00887" name="l00887"></a><span class="lineno">  887</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_DMAResume(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00888" name="l00888"></a><span class="lineno">  888</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_DMAStop(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00889" name="l00889"></a><span class="lineno">  889</span> </div>
<div class="line"><a id="l00890" name="l00890"></a><span class="lineno">  890</span><span class="comment">/* Transfer Abort functions */</span></div>
<div class="line"><a id="l00891" name="l00891"></a><span class="lineno">  891</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Abort(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00892" name="l00892"></a><span class="lineno">  892</span><a class="code hl_enumeration" href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a> HAL_SPI_Abort_IT(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00893" name="l00893"></a><span class="lineno">  893</span> </div>
<div class="line"><a id="l00894" name="l00894"></a><span class="lineno">  894</span><span class="keywordtype">void</span> HAL_SPI_IRQHandler(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00895" name="l00895"></a><span class="lineno">  895</span><span class="keywordtype">void</span> HAL_SPI_TxCpltCallback(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00896" name="l00896"></a><span class="lineno">  896</span><span class="keywordtype">void</span> <a class="code hl_function" href="group___s_p_i___exported___functions___group2.html#ga3df7021fe24cf874f8b1eec5bd5f4cb3">HAL_SPI_RxCpltCallback</a>(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00897" name="l00897"></a><span class="lineno">  897</span><span class="keywordtype">void</span> <a class="code hl_function" href="group___s_p_i___exported___functions___group2.html#ga04e63f382f172164c8e7cae4ff5d883c">HAL_SPI_TxRxCpltCallback</a>(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00898" name="l00898"></a><span class="lineno">  898</span><span class="keywordtype">void</span> HAL_SPI_TxHalfCpltCallback(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00899" name="l00899"></a><span class="lineno">  899</span><span class="keywordtype">void</span> HAL_SPI_RxHalfCpltCallback(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00900" name="l00900"></a><span class="lineno">  900</span><span class="keywordtype">void</span> HAL_SPI_TxRxHalfCpltCallback(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00901" name="l00901"></a><span class="lineno">  901</span><span class="keywordtype">void</span> HAL_SPI_ErrorCallback(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00902" name="l00902"></a><span class="lineno">  902</span><span class="keywordtype">void</span> HAL_SPI_AbortCpltCallback(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00903" name="l00903"></a><span class="lineno">  903</span><span class="keywordtype">void</span> HAL_SPI_SuspendCallback(<a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00907" name="l00907"></a><span class="lineno">  907</span></div>
<div class="line"><a id="l00911" name="l00911"></a><span class="lineno">  911</span> </div>
<div class="line"><a id="l00912" name="l00912"></a><span class="lineno">  912</span><span class="comment">/* Peripheral State and Error functions ***************************************/</span></div>
<div class="line"><a id="l00913" name="l00913"></a><span class="lineno">  913</span><a class="code hl_enumeration" href="group___s_p_i___exported___types.html#ga8891cb64e76198a860172d94c638c9b4">HAL_SPI_StateTypeDef</a> HAL_SPI_GetState(<span class="keyword">const</span> <a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00914" name="l00914"></a><span class="lineno">  914</span>uint32_t             HAL_SPI_GetError(<span class="keyword">const</span> <a class="code hl_typedef" href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a> *hspi);</div>
<div class="line"><a id="l00918" name="l00918"></a><span class="lineno">  918</span></div>
<div class="line"><a id="l00922" name="l00922"></a><span class="lineno">  922</span> </div>
<div class="line"><a id="l00923" name="l00923"></a><span class="lineno">  923</span><span class="comment">/* Private macros ------------------------------------------------------------*/</span></div>
<div class="line"><a id="l00927" name="l00927"></a><span class="lineno">  927</span></div>
<div class="line"><a id="l00933" name="l00933"></a><span class="lineno"><a class="line" href="group___s_p_i___private___macros.html#gae3b2eb5e818e58b66474d42dedac5523">  933</a></span><span class="preprocessor">#define SPI_1LINE_TX(__HANDLE__) SET_BIT((__HANDLE__)-&gt;Instance-&gt;CR1, SPI_CR1_HDDIR)</span></div>
<div class="line"><a id="l00934" name="l00934"></a><span class="lineno">  934</span></div>
<div class="line"><a id="l00940" name="l00940"></a><span class="lineno"><a class="line" href="group___s_p_i___private___macros.html#gaa8d58cef91c1874d5a4dde4014cf6269">  940</a></span><span class="preprocessor">#define SPI_1LINE_RX(__HANDLE__) CLEAR_BIT((__HANDLE__)-&gt;Instance-&gt;CR1, SPI_CR1_HDDIR)</span></div>
<div class="line"><a id="l00941" name="l00941"></a><span class="lineno">  941</span></div>
<div class="line"><a id="l00947" name="l00947"></a><span class="lineno"><a class="line" href="group___s_p_i___private___macros.html#ga2e139e6f86af7b6f2690e679b0303162">  947</a></span><span class="preprocessor">#define SPI_2LINES_TX(__HANDLE__) MODIFY_REG((__HANDLE__)-&gt;Instance-&gt;CFG2, SPI_CFG2_COMM, SPI_CFG2_COMM_0)</span></div>
<div class="line"><a id="l00948" name="l00948"></a><span class="lineno">  948</span></div>
<div class="line"><a id="l00954" name="l00954"></a><span class="lineno"><a class="line" href="group___s_p_i___private___macros.html#ga39089f4a0d840c0748936a574142c8fa">  954</a></span><span class="preprocessor">#define SPI_2LINES_RX(__HANDLE__) MODIFY_REG((__HANDLE__)-&gt;Instance-&gt;CFG2, SPI_CFG2_COMM, SPI_CFG2_COMM_1)</span></div>
<div class="line"><a id="l00955" name="l00955"></a><span class="lineno">  955</span></div>
<div class="line"><a id="l00961" name="l00961"></a><span class="lineno"><a class="line" href="group___s_p_i___private___macros.html#ga5ff90af4675f015852b14e755ce79e08">  961</a></span><span class="preprocessor">#define SPI_2LINES(__HANDLE__) MODIFY_REG((__HANDLE__)-&gt;Instance-&gt;CFG2, SPI_CFG2_COMM, 0x00000000UL)</span></div>
<div class="line"><a id="l00962" name="l00962"></a><span class="lineno">  962</span> </div>
<div class="line"><a id="l00963" name="l00963"></a><span class="lineno">  963</span><span class="preprocessor">#define IS_SPI_MODE(MODE)                          (((MODE) == SPI_MODE_SLAVE) || \</span></div>
<div class="line"><a id="l00964" name="l00964"></a><span class="lineno">  964</span><span class="preprocessor">                                                    ((MODE) == SPI_MODE_MASTER))</span></div>
<div class="line"><a id="l00965" name="l00965"></a><span class="lineno">  965</span> </div>
<div class="line"><a id="l00966" name="l00966"></a><span class="lineno">  966</span><span class="preprocessor">#define IS_SPI_DIRECTION(MODE)                     (((MODE) == SPI_DIRECTION_2LINES)        || \</span></div>
<div class="line"><a id="l00967" name="l00967"></a><span class="lineno">  967</span><span class="preprocessor">                                                    ((MODE) == SPI_DIRECTION_2LINES_RXONLY) || \</span></div>
<div class="line"><a id="l00968" name="l00968"></a><span class="lineno">  968</span><span class="preprocessor">                                                    ((MODE) == SPI_DIRECTION_1LINE)         || \</span></div>
<div class="line"><a id="l00969" name="l00969"></a><span class="lineno">  969</span><span class="preprocessor">                                                    ((MODE) == SPI_DIRECTION_2LINES_TXONLY))</span></div>
<div class="line"><a id="l00970" name="l00970"></a><span class="lineno">  970</span> </div>
<div class="line"><a id="l00971" name="l00971"></a><span class="lineno">  971</span><span class="preprocessor">#define IS_SPI_DIRECTION_2LINES(MODE) ((MODE) == SPI_DIRECTION_2LINES)</span></div>
<div class="line"><a id="l00972" name="l00972"></a><span class="lineno">  972</span> </div>
<div class="line"><a id="l00973" name="l00973"></a><span class="lineno">  973</span><span class="preprocessor">#define IS_SPI_DIRECTION_2LINES_OR_1LINE_2LINES_TXONLY(MODE) (((MODE) == SPI_DIRECTION_2LINES)|| \</span></div>
<div class="line"><a id="l00974" name="l00974"></a><span class="lineno">  974</span><span class="preprocessor">                                                              ((MODE) == SPI_DIRECTION_1LINE) || \</span></div>
<div class="line"><a id="l00975" name="l00975"></a><span class="lineno">  975</span><span class="preprocessor">                                                              ((MODE) == SPI_DIRECTION_2LINES_TXONLY))</span></div>
<div class="line"><a id="l00976" name="l00976"></a><span class="lineno">  976</span> </div>
<div class="line"><a id="l00977" name="l00977"></a><span class="lineno">  977</span><span class="preprocessor">#define IS_SPI_DIRECTION_2LINES_OR_1LINE_2LINES_RXONLY(MODE) (((MODE) == SPI_DIRECTION_2LINES)|| \</span></div>
<div class="line"><a id="l00978" name="l00978"></a><span class="lineno">  978</span><span class="preprocessor">                                                              ((MODE) == SPI_DIRECTION_1LINE) || \</span></div>
<div class="line"><a id="l00979" name="l00979"></a><span class="lineno">  979</span><span class="preprocessor">                                                              ((MODE) == SPI_DIRECTION_2LINES_RXONLY))</span></div>
<div class="line"><a id="l00980" name="l00980"></a><span class="lineno">  980</span> </div>
<div class="line"><a id="l00981" name="l00981"></a><span class="lineno">  981</span><span class="preprocessor">#define IS_SPI_DATASIZE(DATASIZE)                  (((DATASIZE) == SPI_DATASIZE_32BIT) || \</span></div>
<div class="line"><a id="l00982" name="l00982"></a><span class="lineno">  982</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_31BIT) || \</span></div>
<div class="line"><a id="l00983" name="l00983"></a><span class="lineno">  983</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_30BIT) || \</span></div>
<div class="line"><a id="l00984" name="l00984"></a><span class="lineno">  984</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_29BIT) || \</span></div>
<div class="line"><a id="l00985" name="l00985"></a><span class="lineno">  985</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_28BIT) || \</span></div>
<div class="line"><a id="l00986" name="l00986"></a><span class="lineno">  986</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_27BIT) || \</span></div>
<div class="line"><a id="l00987" name="l00987"></a><span class="lineno">  987</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_26BIT) || \</span></div>
<div class="line"><a id="l00988" name="l00988"></a><span class="lineno">  988</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_25BIT) || \</span></div>
<div class="line"><a id="l00989" name="l00989"></a><span class="lineno">  989</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_24BIT) || \</span></div>
<div class="line"><a id="l00990" name="l00990"></a><span class="lineno">  990</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_23BIT) || \</span></div>
<div class="line"><a id="l00991" name="l00991"></a><span class="lineno">  991</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_22BIT) || \</span></div>
<div class="line"><a id="l00992" name="l00992"></a><span class="lineno">  992</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_21BIT) || \</span></div>
<div class="line"><a id="l00993" name="l00993"></a><span class="lineno">  993</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_20BIT) || \</span></div>
<div class="line"><a id="l00994" name="l00994"></a><span class="lineno">  994</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_22BIT) || \</span></div>
<div class="line"><a id="l00995" name="l00995"></a><span class="lineno">  995</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_19BIT) || \</span></div>
<div class="line"><a id="l00996" name="l00996"></a><span class="lineno">  996</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_18BIT) || \</span></div>
<div class="line"><a id="l00997" name="l00997"></a><span class="lineno">  997</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_17BIT) || \</span></div>
<div class="line"><a id="l00998" name="l00998"></a><span class="lineno">  998</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_16BIT) || \</span></div>
<div class="line"><a id="l00999" name="l00999"></a><span class="lineno">  999</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_15BIT) || \</span></div>
<div class="line"><a id="l01000" name="l01000"></a><span class="lineno"> 1000</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_14BIT) || \</span></div>
<div class="line"><a id="l01001" name="l01001"></a><span class="lineno"> 1001</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_13BIT) || \</span></div>
<div class="line"><a id="l01002" name="l01002"></a><span class="lineno"> 1002</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_12BIT) || \</span></div>
<div class="line"><a id="l01003" name="l01003"></a><span class="lineno"> 1003</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_11BIT) || \</span></div>
<div class="line"><a id="l01004" name="l01004"></a><span class="lineno"> 1004</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_10BIT) || \</span></div>
<div class="line"><a id="l01005" name="l01005"></a><span class="lineno"> 1005</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_9BIT)  || \</span></div>
<div class="line"><a id="l01006" name="l01006"></a><span class="lineno"> 1006</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_8BIT)  || \</span></div>
<div class="line"><a id="l01007" name="l01007"></a><span class="lineno"> 1007</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_7BIT)  || \</span></div>
<div class="line"><a id="l01008" name="l01008"></a><span class="lineno"> 1008</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_6BIT)  || \</span></div>
<div class="line"><a id="l01009" name="l01009"></a><span class="lineno"> 1009</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_5BIT)  || \</span></div>
<div class="line"><a id="l01010" name="l01010"></a><span class="lineno"> 1010</span><span class="preprocessor">                                                    ((DATASIZE) == SPI_DATASIZE_4BIT))</span></div>
<div class="line"><a id="l01011" name="l01011"></a><span class="lineno"> 1011</span> </div>
<div class="line"><a id="l01012" name="l01012"></a><span class="lineno"> 1012</span><span class="preprocessor">#define IS_SPI_FIFOTHRESHOLD(THRESHOLD)            (((THRESHOLD) == SPI_FIFO_THRESHOLD_01DATA) || \</span></div>
<div class="line"><a id="l01013" name="l01013"></a><span class="lineno"> 1013</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_02DATA) || \</span></div>
<div class="line"><a id="l01014" name="l01014"></a><span class="lineno"> 1014</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_03DATA) || \</span></div>
<div class="line"><a id="l01015" name="l01015"></a><span class="lineno"> 1015</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_04DATA) || \</span></div>
<div class="line"><a id="l01016" name="l01016"></a><span class="lineno"> 1016</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_05DATA) || \</span></div>
<div class="line"><a id="l01017" name="l01017"></a><span class="lineno"> 1017</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_06DATA) || \</span></div>
<div class="line"><a id="l01018" name="l01018"></a><span class="lineno"> 1018</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_07DATA) || \</span></div>
<div class="line"><a id="l01019" name="l01019"></a><span class="lineno"> 1019</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_08DATA) || \</span></div>
<div class="line"><a id="l01020" name="l01020"></a><span class="lineno"> 1020</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_09DATA) || \</span></div>
<div class="line"><a id="l01021" name="l01021"></a><span class="lineno"> 1021</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_10DATA) || \</span></div>
<div class="line"><a id="l01022" name="l01022"></a><span class="lineno"> 1022</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_11DATA) || \</span></div>
<div class="line"><a id="l01023" name="l01023"></a><span class="lineno"> 1023</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_12DATA) || \</span></div>
<div class="line"><a id="l01024" name="l01024"></a><span class="lineno"> 1024</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_13DATA) || \</span></div>
<div class="line"><a id="l01025" name="l01025"></a><span class="lineno"> 1025</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_14DATA) || \</span></div>
<div class="line"><a id="l01026" name="l01026"></a><span class="lineno"> 1026</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_15DATA) || \</span></div>
<div class="line"><a id="l01027" name="l01027"></a><span class="lineno"> 1027</span><span class="preprocessor">                                                    ((THRESHOLD) == SPI_FIFO_THRESHOLD_16DATA))</span></div>
<div class="line"><a id="l01028" name="l01028"></a><span class="lineno"> 1028</span> </div>
<div class="line"><a id="l01029" name="l01029"></a><span class="lineno"> 1029</span><span class="preprocessor">#define IS_SPI_CPOL(CPOL)                          (((CPOL) == SPI_POLARITY_LOW) || \</span></div>
<div class="line"><a id="l01030" name="l01030"></a><span class="lineno"> 1030</span><span class="preprocessor">                                                    ((CPOL) == SPI_POLARITY_HIGH))</span></div>
<div class="line"><a id="l01031" name="l01031"></a><span class="lineno"> 1031</span> </div>
<div class="line"><a id="l01032" name="l01032"></a><span class="lineno"> 1032</span><span class="preprocessor">#define IS_SPI_CPHA(CPHA)                          (((CPHA) == SPI_PHASE_1EDGE) || \</span></div>
<div class="line"><a id="l01033" name="l01033"></a><span class="lineno"> 1033</span><span class="preprocessor">                                                    ((CPHA) == SPI_PHASE_2EDGE))</span></div>
<div class="line"><a id="l01034" name="l01034"></a><span class="lineno"> 1034</span> </div>
<div class="line"><a id="l01035" name="l01035"></a><span class="lineno"> 1035</span><span class="preprocessor">#define IS_SPI_NSS(NSS)                            (((NSS) == SPI_NSS_SOFT)       || \</span></div>
<div class="line"><a id="l01036" name="l01036"></a><span class="lineno"> 1036</span><span class="preprocessor">                                                    ((NSS) == SPI_NSS_HARD_INPUT) || \</span></div>
<div class="line"><a id="l01037" name="l01037"></a><span class="lineno"> 1037</span><span class="preprocessor">                                                    ((NSS) == SPI_NSS_HARD_OUTPUT))</span></div>
<div class="line"><a id="l01038" name="l01038"></a><span class="lineno"> 1038</span> </div>
<div class="line"><a id="l01039" name="l01039"></a><span class="lineno"> 1039</span><span class="preprocessor">#define IS_SPI_NSSP(NSSP)                          (((NSSP) == SPI_NSS_PULSE_ENABLE) || \</span></div>
<div class="line"><a id="l01040" name="l01040"></a><span class="lineno"> 1040</span><span class="preprocessor">                                                    ((NSSP) == SPI_NSS_PULSE_DISABLE))</span></div>
<div class="line"><a id="l01041" name="l01041"></a><span class="lineno"> 1041</span> </div>
<div class="line"><a id="l01042" name="l01042"></a><span class="lineno"> 1042</span><span class="preprocessor">#define IS_SPI_BAUDRATE_PRESCALER(PRESCALER)       (((PRESCALER) == SPI_BAUDRATEPRESCALER_2)      || \</span></div>
<div class="line"><a id="l01043" name="l01043"></a><span class="lineno"> 1043</span><span class="preprocessor">                                                    ((PRESCALER) == SPI_BAUDRATEPRESCALER_4)      || \</span></div>
<div class="line"><a id="l01044" name="l01044"></a><span class="lineno"> 1044</span><span class="preprocessor">                                                    ((PRESCALER) == SPI_BAUDRATEPRESCALER_8)      || \</span></div>
<div class="line"><a id="l01045" name="l01045"></a><span class="lineno"> 1045</span><span class="preprocessor">                                                    ((PRESCALER) == SPI_BAUDRATEPRESCALER_16)     || \</span></div>
<div class="line"><a id="l01046" name="l01046"></a><span class="lineno"> 1046</span><span class="preprocessor">                                                    ((PRESCALER) == SPI_BAUDRATEPRESCALER_32)     || \</span></div>
<div class="line"><a id="l01047" name="l01047"></a><span class="lineno"> 1047</span><span class="preprocessor">                                                    ((PRESCALER) == SPI_BAUDRATEPRESCALER_64)     || \</span></div>
<div class="line"><a id="l01048" name="l01048"></a><span class="lineno"> 1048</span><span class="preprocessor">                                                    ((PRESCALER) == SPI_BAUDRATEPRESCALER_128)    || \</span></div>
<div class="line"><a id="l01049" name="l01049"></a><span class="lineno"> 1049</span><span class="preprocessor">                                                    ((PRESCALER) == SPI_BAUDRATEPRESCALER_256))</span></div>
<div class="line"><a id="l01050" name="l01050"></a><span class="lineno"> 1050</span> </div>
<div class="line"><a id="l01051" name="l01051"></a><span class="lineno"> 1051</span><span class="preprocessor">#define IS_SPI_FIRST_BIT(BIT)                      (((BIT) == SPI_FIRSTBIT_MSB) || \</span></div>
<div class="line"><a id="l01052" name="l01052"></a><span class="lineno"> 1052</span><span class="preprocessor">                                                    ((BIT) == SPI_FIRSTBIT_LSB))</span></div>
<div class="line"><a id="l01053" name="l01053"></a><span class="lineno"> 1053</span> </div>
<div class="line"><a id="l01054" name="l01054"></a><span class="lineno"> 1054</span><span class="preprocessor">#define IS_SPI_TIMODE(MODE)                        (((MODE) == SPI_TIMODE_DISABLE) || \</span></div>
<div class="line"><a id="l01055" name="l01055"></a><span class="lineno"> 1055</span><span class="preprocessor">                                                    ((MODE) == SPI_TIMODE_ENABLE))</span></div>
<div class="line"><a id="l01056" name="l01056"></a><span class="lineno"> 1056</span> </div>
<div class="line"><a id="l01057" name="l01057"></a><span class="lineno"> 1057</span><span class="preprocessor">#define IS_SPI_CRC_CALCULATION(CALCULATION)        (((CALCULATION) == SPI_CRCCALCULATION_DISABLE) || \</span></div>
<div class="line"><a id="l01058" name="l01058"></a><span class="lineno"> 1058</span><span class="preprocessor">                                                    ((CALCULATION) == SPI_CRCCALCULATION_ENABLE))</span></div>
<div class="line"><a id="l01059" name="l01059"></a><span class="lineno"> 1059</span> </div>
<div class="line"><a id="l01060" name="l01060"></a><span class="lineno"> 1060</span><span class="preprocessor">#define IS_SPI_CRC_INITIALIZATION_PATTERN(PATTERN) (((PATTERN) == SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN) || \</span></div>
<div class="line"><a id="l01061" name="l01061"></a><span class="lineno"> 1061</span><span class="preprocessor">                                                    ((PATTERN) == SPI_CRC_INITIALIZATION_ALL_ONE_PATTERN))</span></div>
<div class="line"><a id="l01062" name="l01062"></a><span class="lineno"> 1062</span> </div>
<div class="line"><a id="l01063" name="l01063"></a><span class="lineno"> 1063</span><span class="preprocessor">#define IS_SPI_CRC_LENGTH(LENGTH)                  (((LENGTH) == SPI_CRC_LENGTH_DATASIZE) || \</span></div>
<div class="line"><a id="l01064" name="l01064"></a><span class="lineno"> 1064</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_32BIT)    || \</span></div>
<div class="line"><a id="l01065" name="l01065"></a><span class="lineno"> 1065</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_31BIT)    || \</span></div>
<div class="line"><a id="l01066" name="l01066"></a><span class="lineno"> 1066</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_30BIT)    || \</span></div>
<div class="line"><a id="l01067" name="l01067"></a><span class="lineno"> 1067</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_29BIT)    || \</span></div>
<div class="line"><a id="l01068" name="l01068"></a><span class="lineno"> 1068</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_28BIT)    || \</span></div>
<div class="line"><a id="l01069" name="l01069"></a><span class="lineno"> 1069</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_27BIT)    || \</span></div>
<div class="line"><a id="l01070" name="l01070"></a><span class="lineno"> 1070</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_26BIT)    || \</span></div>
<div class="line"><a id="l01071" name="l01071"></a><span class="lineno"> 1071</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_25BIT)    || \</span></div>
<div class="line"><a id="l01072" name="l01072"></a><span class="lineno"> 1072</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_24BIT)    || \</span></div>
<div class="line"><a id="l01073" name="l01073"></a><span class="lineno"> 1073</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_23BIT)    || \</span></div>
<div class="line"><a id="l01074" name="l01074"></a><span class="lineno"> 1074</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_22BIT)    || \</span></div>
<div class="line"><a id="l01075" name="l01075"></a><span class="lineno"> 1075</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_21BIT)    || \</span></div>
<div class="line"><a id="l01076" name="l01076"></a><span class="lineno"> 1076</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_20BIT)    || \</span></div>
<div class="line"><a id="l01077" name="l01077"></a><span class="lineno"> 1077</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_19BIT)    || \</span></div>
<div class="line"><a id="l01078" name="l01078"></a><span class="lineno"> 1078</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_18BIT)    || \</span></div>
<div class="line"><a id="l01079" name="l01079"></a><span class="lineno"> 1079</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_17BIT)    || \</span></div>
<div class="line"><a id="l01080" name="l01080"></a><span class="lineno"> 1080</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_16BIT)    || \</span></div>
<div class="line"><a id="l01081" name="l01081"></a><span class="lineno"> 1081</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_15BIT)    || \</span></div>
<div class="line"><a id="l01082" name="l01082"></a><span class="lineno"> 1082</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_14BIT)    || \</span></div>
<div class="line"><a id="l01083" name="l01083"></a><span class="lineno"> 1083</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_13BIT)    || \</span></div>
<div class="line"><a id="l01084" name="l01084"></a><span class="lineno"> 1084</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_12BIT)    || \</span></div>
<div class="line"><a id="l01085" name="l01085"></a><span class="lineno"> 1085</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_11BIT)    || \</span></div>
<div class="line"><a id="l01086" name="l01086"></a><span class="lineno"> 1086</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_10BIT)    || \</span></div>
<div class="line"><a id="l01087" name="l01087"></a><span class="lineno"> 1087</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_9BIT)     || \</span></div>
<div class="line"><a id="l01088" name="l01088"></a><span class="lineno"> 1088</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_8BIT)     || \</span></div>
<div class="line"><a id="l01089" name="l01089"></a><span class="lineno"> 1089</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_7BIT)     || \</span></div>
<div class="line"><a id="l01090" name="l01090"></a><span class="lineno"> 1090</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_6BIT)     || \</span></div>
<div class="line"><a id="l01091" name="l01091"></a><span class="lineno"> 1091</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_5BIT)     || \</span></div>
<div class="line"><a id="l01092" name="l01092"></a><span class="lineno"> 1092</span><span class="preprocessor">                                                    ((LENGTH) == SPI_CRC_LENGTH_4BIT))</span></div>
<div class="line"><a id="l01093" name="l01093"></a><span class="lineno"> 1093</span> </div>
<div class="line"><a id="l01094" name="l01094"></a><span class="lineno"> 1094</span> </div>
<div class="line"><a id="l01095" name="l01095"></a><span class="lineno"> 1095</span><span class="preprocessor">#define IS_SPI_CRC_POLYNOMIAL(POLYNOMIAL)          ((POLYNOMIAL) &gt; 0x0UL)</span></div>
<div class="line"><a id="l01096" name="l01096"></a><span class="lineno"> 1096</span> </div>
<div class="line"><a id="l01097" name="l01097"></a><span class="lineno"> 1097</span><span class="preprocessor">#define IS_SPI_CRC_POLYNOMIAL_SIZE(POLYNOM, LENGTH) (((POLYNOM) &gt;&gt; (((LENGTH) &gt;&gt; SPI_CFG1_CRCSIZE_Pos) + 1UL)) == 0UL)</span></div>
<div class="line"><a id="l01098" name="l01098"></a><span class="lineno"> 1098</span> </div>
<div class="line"><a id="l01099" name="l01099"></a><span class="lineno"> 1099</span> </div>
<div class="line"><a id="l01100" name="l01100"></a><span class="lineno"> 1100</span><span class="preprocessor">#define IS_SPI_UNDERRUN_DETECTION(MODE)            (((MODE) == SPI_UNDERRUN_DETECT_BEGIN_DATA_FRAME) || \</span></div>
<div class="line"><a id="l01101" name="l01101"></a><span class="lineno"> 1101</span><span class="preprocessor">                                                    ((MODE) == SPI_UNDERRUN_DETECT_END_DATA_FRAME)   || \</span></div>
<div class="line"><a id="l01102" name="l01102"></a><span class="lineno"> 1102</span><span class="preprocessor">                                                    ((MODE) == SPI_UNDERRUN_DETECT_BEGIN_ACTIVE_NSS))</span></div>
<div class="line"><a id="l01103" name="l01103"></a><span class="lineno"> 1103</span> </div>
<div class="line"><a id="l01104" name="l01104"></a><span class="lineno"> 1104</span><span class="preprocessor">#define IS_SPI_UNDERRUN_BEHAVIOUR(MODE)            (((MODE) == SPI_UNDERRUN_BEHAV_REGISTER_PATTERN) || \</span></div>
<div class="line"><a id="l01105" name="l01105"></a><span class="lineno"> 1105</span><span class="preprocessor">                                                    ((MODE) == SPI_UNDERRUN_BEHAV_LAST_RECEIVED)    || \</span></div>
<div class="line"><a id="l01106" name="l01106"></a><span class="lineno"> 1106</span><span class="preprocessor">                                                    ((MODE) == SPI_UNDERRUN_BEHAV_LAST_TRANSMITTED))</span></div>
<div class="line"><a id="l01107" name="l01107"></a><span class="lineno"> 1107</span> </div>
<div class="line"><a id="l01108" name="l01108"></a><span class="lineno"> 1108</span><span class="preprocessor">#define IS_SPI_MASTER_RX_AUTOSUSP(MODE)            (((MODE) == SPI_MASTER_RX_AUTOSUSP_DISABLE) || \</span></div>
<div class="line"><a id="l01109" name="l01109"></a><span class="lineno"> 1109</span><span class="preprocessor">                                                    ((MODE) == SPI_MASTER_RX_AUTOSUSP_ENABLE))</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01113" name="l01113"></a><span class="lineno"> 1113</span></div>
<div class="line"><a id="l01117" name="l01117"></a><span class="lineno"> 1117</span></div>
<div class="line"><a id="l01121" name="l01121"></a><span class="lineno"> 1121</span> </div>
<div class="line"><a id="l01122" name="l01122"></a><span class="lineno"> 1122</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l01123" name="l01123"></a><span class="lineno"> 1123</span>}</div>
<div class="line"><a id="l01124" name="l01124"></a><span class="lineno"> 1124</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l01125" name="l01125"></a><span class="lineno"> 1125</span> </div>
<div class="line"><a id="l01126" name="l01126"></a><span class="lineno"> 1126</span><span class="preprocessor">#endif </span><span class="comment">/* STM32H7xx_HAL_SPI_H */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l01127" name="l01127"></a><span class="lineno"> 1127</span></div>
<div class="ttc" id="acore__armv81mml_8h_html_aec43007d9998a0a0e01faede4133d6be"><div class="ttname"><a href="core__armv81mml_8h.html#aec43007d9998a0a0e01faede4133d6be">__IO</a></div><div class="ttdeci">#define __IO</div><div class="ttdef"><b>Definition</b> core_armv81mml.h:277</div></div>
<div class="ttc" id="agroup___d_m_a___exported___types_html_ga41b754a906b86bce54dc79938970138b"><div class="ttname"><a href="group___d_m_a___exported___types.html#ga41b754a906b86bce54dc79938970138b">DMA_HandleTypeDef</a></div><div class="ttdeci">struct __DMA_HandleTypeDef DMA_HandleTypeDef</div><div class="ttdoc">DMA handle Structure definition.</div></div>
<div class="ttc" id="agroup___s_p_i___exported___functions___group1_html_ga17f583be14b22caffa6c4e56dcd035ef"><div class="ttname"><a href="group___s_p_i___exported___functions___group1.html#ga17f583be14b22caffa6c4e56dcd035ef">HAL_SPI_MspInit</a></div><div class="ttdeci">void HAL_SPI_MspInit(SPI_HandleTypeDef *hspi)</div><div class="ttdef"><b>Definition</b> spi.c:117</div></div>
<div class="ttc" id="agroup___s_p_i___exported___functions___group1_html_gabadc4d4974af1afd943e8d13589068e1"><div class="ttname"><a href="group___s_p_i___exported___functions___group1.html#gabadc4d4974af1afd943e8d13589068e1">HAL_SPI_MspDeInit</a></div><div class="ttdeci">void HAL_SPI_MspDeInit(SPI_HandleTypeDef *hspi)</div><div class="ttdef"><b>Definition</b> spi.c:241</div></div>
<div class="ttc" id="agroup___s_p_i___exported___functions___group2_html_ga04e63f382f172164c8e7cae4ff5d883c"><div class="ttname"><a href="group___s_p_i___exported___functions___group2.html#ga04e63f382f172164c8e7cae4ff5d883c">HAL_SPI_TxRxCpltCallback</a></div><div class="ttdeci">void HAL_SPI_TxRxCpltCallback(SPI_HandleTypeDef *hspi)</div><div class="ttdoc">和RxCpltCallback共用解析即可,这里只是形式上封装一下,不用重复写 这是对HAL库的__weak函数的重写,传输使用IT或DMA模式,在传输完成时会调用此函数</div><div class="ttdef"><b>Definition</b> bsp_spi.c:182</div></div>
<div class="ttc" id="agroup___s_p_i___exported___functions___group2_html_ga3df7021fe24cf874f8b1eec5bd5f4cb3"><div class="ttname"><a href="group___s_p_i___exported___functions___group2.html#ga3df7021fe24cf874f8b1eec5bd5f4cb3">HAL_SPI_RxCpltCallback</a></div><div class="ttdeci">void HAL_SPI_RxCpltCallback(SPI_HandleTypeDef *hspi)</div><div class="ttdoc">当SPI接收完成,将会调用此回调函数,可以进行协议解析或其他必须的数据处理等</div><div class="ttdef"><b>Definition</b> bsp_spi.c:156</div></div>
<div class="ttc" id="agroup___s_p_i___exported___types_html_ga8891cb64e76198a860172d94c638c9b4"><div class="ttname"><a href="group___s_p_i___exported___types.html#ga8891cb64e76198a860172d94c638c9b4">HAL_SPI_StateTypeDef</a></div><div class="ttdeci">HAL_SPI_StateTypeDef</div><div class="ttdoc">HAL SPI State structure definition.</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:136</div></div>
<div class="ttc" id="agroup___s_p_i___exported___types_html_gab633e49dd034de2f3a1fe79853d78d18"><div class="ttname"><a href="group___s_p_i___exported___types.html#gab633e49dd034de2f3a1fe79853d78d18">SPI_HandleTypeDef</a></div><div class="ttdeci">struct __SPI_HandleTypeDef SPI_HandleTypeDef</div><div class="ttdoc">SPI handle Structure definition.</div></div>
<div class="ttc" id="agroup___s_p_i___exported___types_html_gga8891cb64e76198a860172d94c638c9b4a0635e168bc0430253fe8e74cfe9768fd"><div class="ttname"><a href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a0635e168bc0430253fe8e74cfe9768fd">HAL_SPI_STATE_BUSY</a></div><div class="ttdeci">@ HAL_SPI_STATE_BUSY</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:139</div></div>
<div class="ttc" id="agroup___s_p_i___exported___types_html_gga8891cb64e76198a860172d94c638c9b4a34f9231d040d752a034db85e3eb7f782"><div class="ttname"><a href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a34f9231d040d752a034db85e3eb7f782">HAL_SPI_STATE_ABORT</a></div><div class="ttdeci">@ HAL_SPI_STATE_ABORT</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:144</div></div>
<div class="ttc" id="agroup___s_p_i___exported___types_html_gga8891cb64e76198a860172d94c638c9b4a3cba266d2346abe3b62fa0acccab4711"><div class="ttname"><a href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a3cba266d2346abe3b62fa0acccab4711">HAL_SPI_STATE_ERROR</a></div><div class="ttdeci">@ HAL_SPI_STATE_ERROR</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:143</div></div>
<div class="ttc" id="agroup___s_p_i___exported___types_html_gga8891cb64e76198a860172d94c638c9b4a5d82b644c7ca656ab5fe8a8e3cbc29ab"><div class="ttname"><a href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a5d82b644c7ca656ab5fe8a8e3cbc29ab">HAL_SPI_STATE_BUSY_TX</a></div><div class="ttdeci">@ HAL_SPI_STATE_BUSY_TX</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:140</div></div>
<div class="ttc" id="agroup___s_p_i___exported___types_html_gga8891cb64e76198a860172d94c638c9b4a9dae2883ae3e43ca28afc9453a14c938"><div class="ttname"><a href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4a9dae2883ae3e43ca28afc9453a14c938">HAL_SPI_STATE_BUSY_TX_RX</a></div><div class="ttdeci">@ HAL_SPI_STATE_BUSY_TX_RX</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:142</div></div>
<div class="ttc" id="agroup___s_p_i___exported___types_html_gga8891cb64e76198a860172d94c638c9b4abb3992c67a15c14bd1808ef6b63fa926"><div class="ttname"><a href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4abb3992c67a15c14bd1808ef6b63fa926">HAL_SPI_STATE_READY</a></div><div class="ttdeci">@ HAL_SPI_STATE_READY</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:138</div></div>
<div class="ttc" id="agroup___s_p_i___exported___types_html_gga8891cb64e76198a860172d94c638c9b4adbc218df2c9841b561282b40b3ded69d"><div class="ttname"><a href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4adbc218df2c9841b561282b40b3ded69d">HAL_SPI_STATE_RESET</a></div><div class="ttdeci">@ HAL_SPI_STATE_RESET</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:137</div></div>
<div class="ttc" id="agroup___s_p_i___exported___types_html_gga8891cb64e76198a860172d94c638c9b4afd7e00128aca1feaa099c2595ffb9277"><div class="ttname"><a href="group___s_p_i___exported___types.html#gga8891cb64e76198a860172d94c638c9b4afd7e00128aca1feaa099c2595ffb9277">HAL_SPI_STATE_BUSY_RX</a></div><div class="ttdeci">@ HAL_SPI_STATE_BUSY_RX</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:141</div></div>
<div class="ttc" id="astm32h7xx__hal__def_8h_html"><div class="ttname"><a href="stm32h7xx__hal__def_8h.html">stm32h7xx_hal_def.h</a></div><div class="ttdoc">This file contains HAL common defines, enumeration, macros and structures definitions.</div></div>
<div class="ttc" id="astm32h7xx__hal__def_8h_html_a63c0679d1cb8b8c684fbb0632743478f"><div class="ttname"><a href="stm32h7xx__hal__def_8h.html#a63c0679d1cb8b8c684fbb0632743478f">HAL_StatusTypeDef</a></div><div class="ttdeci">HAL_StatusTypeDef</div><div class="ttdoc">HAL Status structures definition.</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_def.h:40</div></div>
<div class="ttc" id="astm32h7xx__hal__def_8h_html_ab367482e943333a1299294eadaad284b"><div class="ttname"><a href="stm32h7xx__hal__def_8h.html#ab367482e943333a1299294eadaad284b">HAL_LockTypeDef</a></div><div class="ttdeci">HAL_LockTypeDef</div><div class="ttdoc">HAL Lock structures definition.</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_def.h:51</div></div>
<div class="ttc" id="astm32h7xx__hal__spi__ex_8h_html"><div class="ttname"><a href="stm32h7xx__hal__spi__ex_8h.html">stm32h7xx_hal_spi_ex.h</a></div><div class="ttdoc">Header file of SPI HAL Extended module.</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html">__SPI_HandleTypeDef</a></div><div class="ttdoc">SPI handle Structure definition.</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:170</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_a0876a1b344524bbdbd984be1c3b07a10"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#a0876a1b344524bbdbd984be1c3b07a10">__SPI_HandleTypeDef::hdmarx</a></div><div class="ttdeci">DMA_HandleTypeDef * hdmarx</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:195</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_a186b770dda2e53c4e9a204cd50e17e74"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#a186b770dda2e53c4e9a204cd50e17e74">__SPI_HandleTypeDef::TxXferCount</a></div><div class="ttdeci">__IO uint16_t TxXferCount</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:179</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_a4446bdc11698f861edf37b72cf437aeb"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#a4446bdc11698f861edf37b72cf437aeb">__SPI_HandleTypeDef::TxISR</a></div><div class="ttdeci">void(* TxISR)(struct __SPI_HandleTypeDef *hspi)</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:191</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_a4b43d4d72f571b7d2162a2d171bb1312"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#a4b43d4d72f571b7d2162a2d171bb1312">__SPI_HandleTypeDef::Init</a></div><div class="ttdeci">SPI_InitTypeDef Init</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:173</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_a5617a3a7983aedb0d214f318062ebc48"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#a5617a3a7983aedb0d214f318062ebc48">__SPI_HandleTypeDef::TxXferSize</a></div><div class="ttdeci">uint16_t TxXferSize</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:177</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_a599045b20d284f94e5a367a85cad9f39"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#a599045b20d284f94e5a367a85cad9f39">__SPI_HandleTypeDef::RxISR</a></div><div class="ttdeci">void(* RxISR)(struct __SPI_HandleTypeDef *hspi)</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:189</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_a67e721440b3449d544a27cfd7726c920"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#a67e721440b3449d544a27cfd7726c920">__SPI_HandleTypeDef::RxXferCount</a></div><div class="ttdeci">__IO uint16_t RxXferCount</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:185</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_a97e276bfd322a6028cbac7408cf8e610"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#a97e276bfd322a6028cbac7408cf8e610">__SPI_HandleTypeDef::Instance</a></div><div class="ttdeci">SPI_TypeDef * Instance</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:171</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_aa13d993a0b9b0ea6a07e5a77eeaf394e"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#aa13d993a0b9b0ea6a07e5a77eeaf394e">__SPI_HandleTypeDef::Lock</a></div><div class="ttdeci">HAL_LockTypeDef Lock</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:197</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_aa311e9419f520aee2d2fa30668ce485c"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#aa311e9419f520aee2d2fa30668ce485c">__SPI_HandleTypeDef::hdmatx</a></div><div class="ttdeci">DMA_HandleTypeDef * hdmatx</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:193</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_aa3e13040cc9ea19050d21818bccd49c9"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#aa3e13040cc9ea19050d21818bccd49c9">__SPI_HandleTypeDef::State</a></div><div class="ttdeci">__IO HAL_SPI_StateTypeDef State</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:199</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_aa770b67ee3966c0aa7409f64b3b99bd8"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#aa770b67ee3966c0aa7409f64b3b99bd8">__SPI_HandleTypeDef::pRxBuffPtr</a></div><div class="ttdeci">uint8_t * pRxBuffPtr</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:181</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_aacb6c3c55011b1b4d2a2ee1b4c012984"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#aacb6c3c55011b1b4d2a2ee1b4c012984">__SPI_HandleTypeDef::pTxBuffPtr</a></div><div class="ttdeci">const uint8_t * pTxBuffPtr</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:175</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_ab2497f2e3cfae59376db75da3bda7ffe"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#ab2497f2e3cfae59376db75da3bda7ffe">__SPI_HandleTypeDef::ErrorCode</a></div><div class="ttdeci">__IO uint32_t ErrorCode</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:201</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_ab274a4c2de5e95145d45fe80a289f535"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#ab274a4c2de5e95145d45fe80a289f535">__SPI_HandleTypeDef::RxXferSize</a></div><div class="ttdeci">uint16_t RxXferSize</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:183</div></div>
<div class="ttc" id="astruct_____s_p_i___handle_type_def_html_abef898bf323d7e9d693665f12b6f6239"><div class="ttname"><a href="struct_____s_p_i___handle_type_def.html#abef898bf323d7e9d693665f12b6f6239">__SPI_HandleTypeDef::CRCSize</a></div><div class="ttdeci">uint32_t CRCSize</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:187</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html"><div class="ttname"><a href="struct_s_p_i___init_type_def.html">SPI_InitTypeDef</a></div><div class="ttdoc">SPI Configuration Structure definition.</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:47</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a0288b29c4c3c41fc06605fcee9d4c100"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a0288b29c4c3c41fc06605fcee9d4c100">SPI_InitTypeDef::RxCRCInitializationPattern</a></div><div class="ttdeci">uint32_t RxCRCInitializationPattern</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:107</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a142a178fe24816713e6f787424b7da46"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a142a178fe24816713e6f787424b7da46">SPI_InitTypeDef::MasterReceiverAutoSusp</a></div><div class="ttdeci">uint32_t MasterReceiverAutoSusp</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:121</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a1ba4e509384f19be9854adea27a454fa"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a1ba4e509384f19be9854adea27a454fa">SPI_InitTypeDef::MasterSSIdleness</a></div><div class="ttdeci">uint32_t MasterSSIdleness</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:111</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a1d553f90738cb633a9298d2b4d306fde"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a1d553f90738cb633a9298d2b4d306fde">SPI_InitTypeDef::BaudRatePrescaler</a></div><div class="ttdeci">uint32_t BaudRatePrescaler</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:68</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a2353869659f9840f31d800e012961850"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a2353869659f9840f31d800e012961850">SPI_InitTypeDef::MasterKeepIOState</a></div><div class="ttdeci">uint32_t MasterKeepIOState</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:125</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a24b7835dd877e1c4e55236303fa3387f"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a24b7835dd877e1c4e55236303fa3387f">SPI_InitTypeDef::DataSize</a></div><div class="ttdeci">uint32_t DataSize</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:54</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a3472de9bd9247c1d97312aff7e58e385"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a3472de9bd9247c1d97312aff7e58e385">SPI_InitTypeDef::CRCCalculation</a></div><div class="ttdeci">uint32_t CRCCalculation</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:80</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a5247eb0463437c9980a9d4a5300b50a5"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a5247eb0463437c9980a9d4a5300b50a5">SPI_InitTypeDef::Mode</a></div><div class="ttdeci">uint32_t Mode</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:48</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a60db7e87bb66775df6213e4006dfd876"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a60db7e87bb66775df6213e4006dfd876">SPI_InitTypeDef::TIMode</a></div><div class="ttdeci">uint32_t TIMode</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:77</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a736486f4bfe259356bf825d8b8c848bb"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a736486f4bfe259356bf825d8b8c848bb">SPI_InitTypeDef::FifoThreshold</a></div><div class="ttdeci">uint32_t FifoThreshold</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:100</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a8c541d8863cb62a3212b9381b5cba447"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a8c541d8863cb62a3212b9381b5cba447">SPI_InitTypeDef::FirstBit</a></div><div class="ttdeci">uint32_t FirstBit</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:74</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_a96922c7ff9e589ebd9611fc4ab730454"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#a96922c7ff9e589ebd9611fc4ab730454">SPI_InitTypeDef::CLKPolarity</a></div><div class="ttdeci">uint32_t CLKPolarity</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:57</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_aa46bb96cca3eec52a44926a388dbeaf9"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#aa46bb96cca3eec52a44926a388dbeaf9">SPI_InitTypeDef::MasterInterDataIdleness</a></div><div class="ttdeci">uint32_t MasterInterDataIdleness</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:116</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_aab94c82883ea08f33ef383efe30347eb"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#aab94c82883ea08f33ef383efe30347eb">SPI_InitTypeDef::NSSPMode</a></div><div class="ttdeci">uint32_t NSSPMode</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:90</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_ab21a458209f2588f49a2353c56f62625"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#ab21a458209f2588f49a2353c56f62625">SPI_InitTypeDef::CLKPhase</a></div><div class="ttdeci">uint32_t CLKPhase</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:60</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_abdaf3ccbfa4ef68cc81fd32f29baa678"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#abdaf3ccbfa4ef68cc81fd32f29baa678">SPI_InitTypeDef::CRCPolynomial</a></div><div class="ttdeci">uint32_t CRCPolynomial</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:83</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_acddf0a9e873f8c9a05c9901f648e5920"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#acddf0a9e873f8c9a05c9901f648e5920">SPI_InitTypeDef::TxCRCInitializationPattern</a></div><div class="ttdeci">uint32_t TxCRCInitializationPattern</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:103</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_ade3815f539adcdeba866ab26a5f59c99"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#ade3815f539adcdeba866ab26a5f59c99">SPI_InitTypeDef::CRCLength</a></div><div class="ttdeci">uint32_t CRCLength</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:87</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_ade84e3b4f320066c60d10eccd02ae1e5"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#ade84e3b4f320066c60d10eccd02ae1e5">SPI_InitTypeDef::NSSPolarity</a></div><div class="ttdeci">uint32_t NSSPolarity</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:96</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_ae5c132f597c806d7a1fe316023b36867"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#ae5c132f597c806d7a1fe316023b36867">SPI_InitTypeDef::Direction</a></div><div class="ttdeci">uint32_t Direction</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:51</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_aed541d17808213ac6f90ac7deb2bec5f"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#aed541d17808213ac6f90ac7deb2bec5f">SPI_InitTypeDef::NSS</a></div><div class="ttdeci">uint32_t NSS</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:63</div></div>
<div class="ttc" id="astruct_s_p_i___init_type_def_html_afa49766f8a69a21f3e866fb38770b75f"><div class="ttname"><a href="struct_s_p_i___init_type_def.html#afa49766f8a69a21f3e866fb38770b75f">SPI_InitTypeDef::IOSwap</a></div><div class="ttdeci">uint32_t IOSwap</div><div class="ttdef"><b>Definition</b> stm32h7xx_hal_spi.h:128</div></div>
<div class="ttc" id="astruct_s_p_i___type_def_html"><div class="ttname"><a href="struct_s_p_i___type_def.html">SPI_TypeDef</a></div><div class="ttdoc">Serial Peripheral Interface.</div><div class="ttdef"><b>Definition</b> stm32h723xx.h:1479</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a href="dir_60925fc218da8ca7908795bf5f624060.html">Drivers</a></li><li class="navelem"><a href="dir_7baec2ddb99168f99d1052c1aec46b20.html">STM32H7xx_HAL_Driver</a></li><li class="navelem"><a href="dir_4f22a8fa6199c96df71a89cbd7613f35.html">Inc</a></li><li class="navelem"><a href="stm32h7xx__hal__spi_8h.html">stm32h7xx_hal_spi.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
  </ul>
</div>
</body>
</html>
